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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".