Struct ratchet_deflate::WindowBits
source · pub struct WindowBits(_);
Expand description
Client or server maximum window bits. Wrapping a u8
with a value in the range of 8..=15.
Implementations§
source§impl WindowBits
impl WindowBits
pub fn as_str(&self) -> &'static str
pub const fn eight() -> WindowBits
pub const fn nine() -> WindowBits
pub const fn ten() -> WindowBits
pub const fn eleven() -> WindowBits
pub const fn twelve() -> WindowBits
pub const fn thirteen() -> WindowBits
pub const fn fourteen() -> WindowBits
pub const fn fifteen() -> WindowBits
Trait Implementations§
source§impl Clone for WindowBits
impl Clone for WindowBits
source§fn clone(&self) -> WindowBits
fn clone(&self) -> WindowBits
Returns a copy 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 WindowBits
impl Debug for WindowBits
source§impl From<WindowBits> for u8
impl From<WindowBits> for u8
source§fn from(bits: WindowBits) -> Self
fn from(bits: WindowBits) -> Self
Converts to this type from the input type.
source§impl PartialEq<WindowBits> for WindowBits
impl PartialEq<WindowBits> for WindowBits
source§fn eq(&self, other: &WindowBits) -> bool
fn eq(&self, other: &WindowBits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<u8> for WindowBits
impl PartialEq<u8> for WindowBits
source§impl PartialOrd<WindowBits> for WindowBits
impl PartialOrd<WindowBits> for WindowBits
source§fn partial_cmp(&self, other: &WindowBits) -> Option<Ordering>
fn partial_cmp(&self, other: &WindowBits) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<u8> for WindowBits
impl PartialOrd<u8> for WindowBits
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for WindowBits
impl TryFrom<u8> for WindowBits
impl Copy for WindowBits
impl StructuralPartialEq for WindowBits
Auto Trait Implementations§
impl RefUnwindSafe for WindowBits
impl Send for WindowBits
impl Sync for WindowBits
impl Unpin for WindowBits
impl UnwindSafe for WindowBits
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