pub struct ObjectStreamBuilder { /* private fields */ }
Implementations§
Source§impl ObjectStreamBuilder
impl ObjectStreamBuilder
Sourcepub fn max_objects(self, max: usize) -> Self
pub fn max_objects(self, max: usize) -> Self
Set the maximum number of objects per stream
Sourcepub fn compression_level(self, level: u32) -> Self
pub fn compression_level(self, level: u32) -> Self
Set the compression level (0-9)
Sourcepub fn build(self) -> ObjectStream
pub fn build(self) -> ObjectStream
Build the ObjectStream
Sourcepub fn get_max_objects(&self) -> usize
pub fn get_max_objects(&self) -> usize
Get the current max_objects setting
Sourcepub fn get_compression_level(&self) -> u32
pub fn get_compression_level(&self) -> u32
Get the current compression_level setting
Trait Implementations§
Source§impl Clone for ObjectStreamBuilder
impl Clone for ObjectStreamBuilder
Source§fn clone(&self) -> ObjectStreamBuilder
fn clone(&self) -> ObjectStreamBuilder
Returns a duplicate 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 ObjectStreamBuilder
impl RefUnwindSafe for ObjectStreamBuilder
impl Send for ObjectStreamBuilder
impl Sync for ObjectStreamBuilder
impl Unpin for ObjectStreamBuilder
impl UnwindSafe for ObjectStreamBuilder
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§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