Trait breadx::auto::AsByteSequence [−][src]
Internal use helper trait. This represents an item that can be converted to and from a series of bytes.
Required methods
fn size(&self) -> usize
[src]
Get the size needed to store this item in terms of bytes. Higher is better than lower here, since this is mostly used to allocate buffers for items.
fn as_bytes(&self, bytes: &mut [u8]) -> usize
[src]
Append this item to a sequence of bytes.
fn from_bytes(bytes: &[u8]) -> Option<(Self, usize)>
[src]
Convert a sequence of bytes into this item.
Provided methods
fn file_descriptors(&mut self) -> Option<&mut Vec<Fd>>
[src]
If this item has any file descriptors stored within, this function returns them.