Trait websocket::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
Implementors
impl<'a> IntoCowBytes<'a> for Vec<u8>
impl<'a> IntoCowBytes<'a> for &'a [u8]
impl<'a> IntoCowBytes<'a> for Cow<'a, [u8]>