websocket_base::message

Trait IntoCowBytes

Source
pub trait IntoCowBytes<'a> {
    // Required method
    fn into(self) -> Cow<'a, [u8]>;
}
Expand description

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

Required Methods§

Source

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

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

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'a> IntoCowBytes<'a> for Vec<u8>

Source§

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

Implementors§