Struct lance_io::local::LocalObjectReader
source · pub struct LocalObjectReader { /* private fields */ }Expand description
[ObjectReader] for local file system.
Implementations§
Trait Implementations§
source§impl Reader for LocalObjectReader
impl Reader for LocalObjectReader
source§fn size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the file size.
source§fn get_range<'life0, 'async_trait>(
&'life0 self,
range: Range<usize>
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_range<'life0, 'async_trait>(
&'life0 self,
range: Range<usize>
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Reads a range of data.
fn path(&self) -> &Path
source§fn block_size(&self) -> usize
fn block_size(&self) -> usize
Suggest optimal I/O size per storage device.
Auto Trait Implementations§
impl Freeze for LocalObjectReader
impl RefUnwindSafe for LocalObjectReader
impl Send for LocalObjectReader
impl Sync for LocalObjectReader
impl Unpin for LocalObjectReader
impl UnwindSafe for LocalObjectReader
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