Trait scsi::BufferPushable

source ·
pub trait BufferPushable {
    fn push_to_buffer<B: Buffer>(
        &self,
        buffer: &mut B
    ) -> Result<usize, ScsiError>; }
Expand description

A trait to represent a struct that can be pushed to a byte buffer in a constant, predetermined way.

Required Methods

Pushes self to a buffer, returning the number of bytes pushed on success.

Implementations on Foreign Types

Implementors