pub struct Window(i32);
Expand description
The current capacity of a flow-controlled Window.
This number can go negative when either side has used a certain amount of capacity when the other side advertises a reduction in size.
This type tries to centralize the knowledge of addition and subtraction to this capacity, instead of having integer casts throughout the source.
Tuple Fields§
§0: i32
Implementations§
Trait Implementations§
source§impl PartialEq<usize> for Window
impl PartialEq<usize> for Window
source§impl PartialEq for Window
impl PartialEq for Window
source§impl PartialOrd<usize> for Window
impl PartialOrd<usize> for Window
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 for Window
impl PartialOrd for Window
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 moreimpl Copy for Window
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.