pub enum CompressionLevel {
Interactive,
Amortized,
}展开描述
A hint 用于 how many resources 到 dedicate 到 一个 compression.
变体§
Interactive
This compression is happening interactively during 一个 handshake.
Implementations may wish 到 choose 一个 conservative compression level.
Amortized
此 compression may be amortized over many connections.
Implementations may wish 到 choose an aggressive compression level.
Trait 实现§
Source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
Source§fn clone(&self) -> CompressionLevel
fn clone(&self) -> CompressionLevel
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for CompressionLevel
impl Debug for CompressionLevel
Source§impl PartialEq for CompressionLevel
impl PartialEq for CompressionLevel
impl Copy for CompressionLevel
impl Eq for CompressionLevel
impl StructuralPartialEq for CompressionLevel
自动 Trait 实现§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnsafeUnpin for CompressionLevel
impl UnwindSafe for CompressionLevel
Blanket 实现§
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 从 an owned value. 更多信息