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]>

Loading content...

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]

Loading content...

Implementors

Loading content...