pub struct AsyncBinaryReader { /* private fields */ }
Implementations§
source§impl AsyncBinaryReader
impl AsyncBinaryReader
pub fn new( path: &PathBuf, compressed: bool, remove_file: RemoveFileMode, prefetch: Option<usize>, ) -> Self
pub fn get_chunks_count(&self) -> usize
pub fn get_file_size(&self) -> usize
source§impl AsyncBinaryReader
impl AsyncBinaryReader
pub fn is_finished(&self) -> bool
pub fn get_items_stream<S: BucketItemSerializer>( &self, read_thread: Arc<AsyncReaderThread>, buffer: S::ReadBuffer, extra_buffer: S::ExtraDataBuffer, ) -> AsyncBinaryReaderItemsIterator<S>
pub fn get_name(&self) -> PathBuf
Trait Implementations§
source§impl Clone for AsyncBinaryReader
impl Clone for AsyncBinaryReader
source§fn clone(&self) -> AsyncBinaryReader
fn clone(&self) -> AsyncBinaryReader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AsyncBinaryReader
impl !RefUnwindSafe for AsyncBinaryReader
impl Send for AsyncBinaryReader
impl Sync for AsyncBinaryReader
impl Unpin for AsyncBinaryReader
impl !UnwindSafe for AsyncBinaryReader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more