Trait wire_framed::IntoFrame
source · pub trait IntoFrame: Sized {
// Required method
fn extend_frame(&self, frame: &mut BytesMut);
// Provided methods
fn size_hint(&self) -> usize { ... }
fn into_frame(&self) -> Bytes { ... }
}Expand description
Trait for converting a Self into a frame.
Required Methods§
sourcefn extend_frame(&self, frame: &mut BytesMut)
fn extend_frame(&self, frame: &mut BytesMut)
Extend a frame with the contents of Self.
Provided Methods§
sourcefn into_frame(&self) -> Bytes
fn into_frame(&self) -> Bytes
Converts Self into an owned frame.