pub struct ObjectStreamBuilder { /* private fields */ }Implementations§
Source§impl ObjectStreamBuilder
impl ObjectStreamBuilder
Sourcepub fn max_objects(self, max: usize) -> ObjectStreamBuilder
pub fn max_objects(self, max: usize) -> ObjectStreamBuilder
Set the maximum number of objects per stream
Sourcepub fn compression_level(self, level: u32) -> ObjectStreamBuilder
pub fn compression_level(self, level: u32) -> ObjectStreamBuilder
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