Struct foyer::DirectFsDevice
source · pub struct DirectFsDevice { /* private fields */ }Expand description
A device that uses direct i/o files in a directory of a file system.
Trait Implementations§
source§impl Clone for DirectFsDevice
impl Clone for DirectFsDevice
source§fn clone(&self) -> DirectFsDevice
fn clone(&self) -> DirectFsDevice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DirectFsDevice
impl Debug for DirectFsDevice
source§impl Dev for DirectFsDevice
impl Dev for DirectFsDevice
source§type Options = DirectFsDeviceOptions
type Options = DirectFsDeviceOptions
Options for the device.
source§fn region_size(&self) -> usize
fn region_size(&self) -> usize
The region size of the device, must be 4K aligned.
source§async fn open(
options: <DirectFsDevice as Dev>::Options,
runtime: Runtime,
) -> Result<DirectFsDevice, Error>
async fn open( options: <DirectFsDevice as Dev>::Options, runtime: Runtime, ) -> Result<DirectFsDevice, Error>
Open the device with the given options.
source§async fn write(
&self,
buf: IoBytes,
region: u32,
offset: u64,
) -> Result<(), Error>
async fn write( &self, buf: IoBytes, region: u32, offset: u64, ) -> Result<(), Error>
Write API for the device.
Auto Trait Implementations§
impl Freeze for DirectFsDevice
impl !RefUnwindSafe for DirectFsDevice
impl Send for DirectFsDevice
impl Sync for DirectFsDevice
impl Unpin for DirectFsDevice
impl !UnwindSafe for DirectFsDevice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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