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
Auto Trait Implementations§
impl Freeze for ObjectStreamBuilder
impl RefUnwindSafe for ObjectStreamBuilder
impl Send for ObjectStreamBuilder
impl Sync for ObjectStreamBuilder
impl Unpin for ObjectStreamBuilder
impl UnsafeUnpin 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