Trait fluvio_future::fs::AsyncFileExtension
source · pub trait AsyncFileExtension {
// Required methods
fn reset_to_beginning<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), IoError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: '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>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Utilites for dealing with Async file