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]
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]
impl<T: WriteAt + ReadAt> ReadAt for BlockLimitWrite<T>
[src]
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