[−][src]Trait scsi::BufferPullable
Allows for a struct to deserialize itself from a raw byte buffer.
Required methods
fn pull_from_buffer<T: AsRef<[u8]>>(buffer: T) -> Result<Self, ScsiError>
Deserializes an instance of T
from a byte buffer.
#Errors
Can return a BufferTooSmall
error when the length of buffer
is not
large enough to deserialize from, or a ParseError
if the buffer
cannot be deserialized into a valid instance of T
using the bytes
provided.
Implementors
impl BufferPullable for CommandBlockWrapper
[src]
fn pull_from_buffer<B: AsRef<[u8]>>(buffer: B) -> Result<Self, ScsiError>
[src]
impl BufferPullable for CommandStatusWrapper
[src]
fn pull_from_buffer<B: AsRef<[u8]>>(buffer: B) -> Result<Self, ScsiError>
[src]
impl BufferPullable for InquiryCommand
[src]
fn pull_from_buffer<B: AsRef<[u8]>>(buffer: B) -> Result<Self, ScsiError>
[src]
impl BufferPullable for InquiryResponse
[src]
fn pull_from_buffer<B: AsRef<[u8]>>(
buffer: B
) -> Result<InquiryResponse, ScsiError>
[src]
buffer: B
) -> Result<InquiryResponse, ScsiError>
impl BufferPullable for Read10Command
[src]
fn pull_from_buffer<B: AsRef<[u8]>>(buffer: B) -> Result<Self, ScsiError>
[src]
impl BufferPullable for ReadCapacityCommand
[src]
fn pull_from_buffer<B: AsRef<[u8]>>(buffer: B) -> Result<Self, ScsiError>
[src]
impl BufferPullable for ReadCapacityResponse
[src]
fn pull_from_buffer<B: AsRef<[u8]>>(
buffer: B
) -> Result<ReadCapacityResponse, ScsiError>
[src]
buffer: B
) -> Result<ReadCapacityResponse, ScsiError>