[][src]Trait websocket::message::IntoCowBytes

pub trait IntoCowBytes<'a> {
    fn into(self) -> Cow<'a, [u8]>;
}

Trait representing the ability to convert self to a Cow<'a, [u8]>

Required Methods

Consume self and produce a Cow<'a, [u8]>

Implementations on Foreign Types

impl<'a> IntoCowBytes<'a> for Vec<u8>
[src]

impl<'a> IntoCowBytes<'a> for &'a [u8]
[src]

impl<'a> IntoCowBytes<'a> for Cow<'a, [u8]>
[src]

Implementors