[−][src]Trait scsi::BufferPushable
Allows a struct to serialize itself to a raw byte buffer.
Required methods
fn push_to_buffer<T: AsMut<[u8]>>(&self, buffer: T) -> Result<usize, ScsiError>
Serializes self
to a raw byte slice.
Returns the number of bytes written on succes.
#Errors
Can return a BufferTooSmall
error when the length of buffer
is not
large enough to serialize to.