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

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

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

Required methods

pub 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, Global>[src]

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

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

Loading content...

Implementors

Loading content...