[−][src]Trait amadeus_core::file::Page
Associated Types
Loading content...Required methods
fn len(&self) -> u64
fn set_len(&self, len: u64) -> Result<(), Self::Error>
fn read(
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
fn write(
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>
Provided methods
Loading content...Implementations on Foreign Types
impl<'impl0, T: ?Sized> Page for &'impl0 T where
T: Page + Sync,
[src]
T: Page + Sync,
type Error = T::Error
fn len(&self) -> u64
[src]
fn set_len(&self, len: u64) -> Result<(), Self::Error>
[src]
fn read(
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
[src]
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
fn write(
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>
[src]
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>
impl<T: ?Sized> Page for Arc<T> where
T: Page + Sync,
[src]
T: Page + Sync,
type Error = T::Error
fn len(&self) -> u64
[src]
fn set_len(&self, len: u64) -> Result<(), Self::Error>
[src]
fn read(
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
[src]
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
fn write(
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>
[src]
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>
Implementors
impl Page for LocalFile
[src]
type Error = IoError
fn len(&self) -> u64
[src]
fn set_len(&self, len: u64) -> Result<(), Self::Error>
[src]
fn read(
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
[src]
&self,
offset: u64,
len: usize
) -> BoxFuture<'static, Result<Box<[u8]>, Self::Error>>
fn write(
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>
[src]
&self,
offset: u64,
buf: Box<[u8]>
) -> BoxFuture<'static, Result<(), Self::Error>>