lance_io::traits

Trait Writer

Source
pub trait Writer:
    AsyncWrite
    + Unpin
    + Send {
    // Required method
    fn tell<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait for writing to a file on local file system or object store.

Required Methods§

Source

fn tell<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Tell the current offset.

Implementations on Foreign Types§

Source§

impl Writer for File

Source§

fn tell<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§