pub struct SetCompression {
pub threshold: i32,
}Expand description
Set the connection compression.
Fields§
§threshold: i32Maximum packet size to need compression.
Trait Implementations§
Source§impl Clone for SetCompression
impl Clone for SetCompression
Source§fn clone(&self) -> SetCompression
fn clone(&self) -> SetCompression
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 moreSource§impl Debug for SetCompression
impl Debug for SetCompression
Source§impl PartialEq for SetCompression
impl PartialEq for SetCompression
impl StructuralPartialEq for SetCompression
Auto Trait Implementations§
impl Freeze for SetCompression
impl RefUnwindSafe for SetCompression
impl Send for SetCompression
impl Sync for SetCompression
impl Unpin for SetCompression
impl UnwindSafe for SetCompression
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