pub struct StreamingDecoderBuilder<'a> { /* private fields */ }Expand description
Builder for configuring streaming decode with options
Implementations§
Source§impl<'a> StreamingDecoderBuilder<'a>
impl<'a> StreamingDecoderBuilder<'a>
Sourcepub fn new(fs: &'a VersionedEmbrFS, path: impl Into<String>) -> Self
pub fn new(fs: &'a VersionedEmbrFS, path: impl Into<String>) -> Self
Create a new streaming decoder builder
Sourcepub fn with_offset(self, offset: usize) -> Self
pub fn with_offset(self, offset: usize) -> Self
Set starting offset for partial reads
Sourcepub fn with_max_bytes(self, max: usize) -> Self
pub fn with_max_bytes(self, max: usize) -> Self
Limit maximum bytes to read
Sourcepub fn build(self) -> Result<StreamingDecoder<'a>, EmbrFSError>
pub fn build(self) -> Result<StreamingDecoder<'a>, EmbrFSError>
Build the streaming decoder
Auto Trait Implementations§
impl<'a> Freeze for StreamingDecoderBuilder<'a>
impl<'a> RefUnwindSafe for StreamingDecoderBuilder<'a>
impl<'a> Send for StreamingDecoderBuilder<'a>
impl<'a> Sync for StreamingDecoderBuilder<'a>
impl<'a> Unpin for StreamingDecoderBuilder<'a>
impl<'a> UnwindSafe for StreamingDecoderBuilder<'a>
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> 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