Trait fluvio_future::fs::AsyncFileExtension
source · [−]pub trait AsyncFileExtension {
fn reset_to_beginning<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), IoError>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
Self: 'async_trait;
fn raw_slice(&self, position: u64, len: u64) -> AsyncFileSlice;
fn as_slice<'life0, 'async_trait>(
&'life0 self,
position: u64,
desired_len_opt: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<AsyncFileSlice, IoError>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Utilites for dealing with Async file
Required Methods
fn reset_to_beginning<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), IoError>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn raw_slice(&self, position: u64, len: u64) -> AsyncFileSlice
fn as_slice<'life0, 'async_trait>(
&'life0 self,
position: u64,
desired_len_opt: Option<u64>
) -> Pin<Box<dyn Future<Output = Result<AsyncFileSlice, IoError>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;