pub struct LocalFileAccessor { /* private fields */ }Expand description
Local file accessor using memory mapping
Implementations§
Trait Implementations§
Source§impl FileAccessor for LocalFileAccessor
impl FileAccessor for LocalFileAccessor
Source§fn read_bytes<'life0, 'async_trait>(
&'life0 self,
offset: u64,
size: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_bytes<'life0, 'async_trait>(
&'life0 self,
offset: u64,
size: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read bytes from the file
Source§fn write_bytes<'life0, 'life1, 'async_trait>(
&'life0 self,
_offset: u64,
_data: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_bytes<'life0, 'life1, 'async_trait>(
&'life0 self,
_offset: u64,
_data: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write bytes to the file
Auto Trait Implementations§
impl Freeze for LocalFileAccessor
impl RefUnwindSafe for LocalFileAccessor
impl Send for LocalFileAccessor
impl Sync for LocalFileAccessor
impl Unpin for LocalFileAccessor
impl UnsafeUnpin for LocalFileAccessor
impl UnwindSafe for LocalFileAccessor
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