Struct io_at::BlockLimitWrite [] [src]

pub struct BlockLimitWrite<T: WriteAt> {
    // some fields omitted
}

Limit the amount of data accepted in a single call to WriteAt (ReadAt is unaffected)

This is primarily useful for testing that handling of incomplete writes work properly.

Methods

impl<T: WriteAt> BlockLimitWrite<T>
[src]

fn new(v: T, max_per_block: usize) -> Self

Trait Implementations

impl<T: PartialEq + WriteAt> PartialEq for BlockLimitWrite<T>
[src]

fn eq(&self, __arg_0: &BlockLimitWrite<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &BlockLimitWrite<T>) -> bool

This method tests for !=.

impl<T: Eq + WriteAt> Eq for BlockLimitWrite<T>
[src]

impl<T: Debug + WriteAt> Debug for BlockLimitWrite<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: WriteAt + ReadAt> ReadAt for BlockLimitWrite<T>
[src]

fn read_at(&self, buf: &mut [u8], offs: u64) -> Result<usize>

impl<T: WriteAt> WriteAt for BlockLimitWrite<T>
[src]

fn write_at(&mut self, buf: &[u8], offs: u64) -> Result<usize>

fn write_all_at(&mut self, buf: &[u8], offs: u64) -> Result<()>

impl<T: WriteAt> Deref for BlockLimitWrite<T>
[src]

type Target = T

The resulting type after dereferencing

fn deref<'a>(&'a self) -> &'a T

The method called to dereference a value

impl<T: WriteAt> DerefMut for BlockLimitWrite<T>
[src]

fn deref_mut<'a>(&'a mut self) -> &'a mut T

The method called to mutably dereference a value