Trait binate::frame::Encode [−][src]
pub trait Encode { fn encode(&self, buf: &mut BytesMut); fn len(&self) -> usize; fn is_empty(&self) -> bool { ... } fn to_bytes(&self) -> Bytes { ... } }
This is supported on crate feature
frame
only.Expand description
A trait for encoding a frame into bytes.