Trait websocket_base::message::IntoCowBytes[][src]

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

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

Required methods

fn into(self) -> Cow<'a, [u8]>[src][]

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