pub trait Writable {
// Required methods
fn write(&self, buffer: &mut BytesMut);
fn len(&self) -> usize;
fn code(&self) -> u8;
fn is_empty(&self) -> bool;
}
Expand description
Write something ‘to the wire’.
Required Methods§
Sourcefn len(&self) -> usize
fn len(&self) -> usize
Byte-length that would be written if Self::write
is called
Sourcefn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Whether a call to Self::write
would write something