pub struct ChildBlockService<S: ?Sized> { /* private fields */ }Expand description
A BlockService that maps logical block offsets through the extents of a mapped File
in a parent session.
Implementations§
Trait Implementations§
Source§impl<S: BlockService + ?Sized> BlockService for ChildBlockService<S>
impl<S: BlockService + ?Sized> BlockService for ChildBlockService<S>
Source§fn allocate_buffer(&self, max_len: usize) -> OwnedBuffer
fn allocate_buffer(&self, max_len: usize) -> OwnedBuffer
Source§fn read_blocks(
&self,
device_offset: u64,
dest_buffer: OwnedBuffer,
on_complete: Box<dyn FnOnce(Result<OwnedBuffer, Error>) + Send>,
) -> Result<(), Error>
fn read_blocks( &self, device_offset: u64, dest_buffer: OwnedBuffer, on_complete: Box<dyn FnOnce(Result<OwnedBuffer, Error>) + Send>, ) -> Result<(), Error>
Submits a read for the specified range from
device_offset into dest_buffer.
When the read completes, on_complete is invoked with the result containing the buffer.Auto Trait Implementations§
impl<S> !RefUnwindSafe for ChildBlockService<S>
impl<S> !UnwindSafe for ChildBlockService<S>
impl<S> Freeze for ChildBlockService<S>where
S: ?Sized,
impl<S> Send for ChildBlockService<S>
impl<S> Sync for ChildBlockService<S>
impl<S> Unpin for ChildBlockService<S>where
S: ?Sized,
impl<S> UnsafeUnpin for ChildBlockService<S>where
S: ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more