pub struct WindowScale(/* private fields */);
Expand description
This type is a witness for a valid window scale exponent value.
Per RFC 7323 Section 2.2, the restriction is as follows: The maximum scale exponent is limited to 14 for a maximum permissible receive window size of 1 GiB (2^(14+16)).
Implementations§
Source§impl WindowScale
impl WindowScale
Sourcepub const MAX: WindowScale = _
pub const MAX: WindowScale = _
The largest possible WindowScale
.
Sourcepub const ZERO: WindowScale = _
pub const ZERO: WindowScale = _
The smallest possible WindowScale
.
Trait Implementations§
Source§impl Clone for WindowScale
impl Clone for WindowScale
Source§fn clone(&self) -> WindowScale
fn clone(&self) -> WindowScale
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 WindowScale
impl Debug for WindowScale
Source§impl Default for WindowScale
impl Default for WindowScale
Source§fn default() -> WindowScale
fn default() -> WindowScale
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowScale
impl PartialEq for WindowScale
Source§impl Shl<WindowScale> for UnscaledWindowSize
impl Shl<WindowScale> for UnscaledWindowSize
Source§type Output = WindowSize
type Output = WindowSize
The resulting type after applying the
<<
operator.Source§impl Shr<WindowScale> for WindowSize
impl Shr<WindowScale> for WindowSize
Source§type Output = UnscaledWindowSize
type Output = UnscaledWindowSize
The resulting type after applying the
>>
operator.impl Copy for WindowScale
impl Eq for WindowScale
impl StructuralPartialEq for WindowScale
Auto Trait Implementations§
impl Freeze for WindowScale
impl RefUnwindSafe for WindowScale
impl Send for WindowScale
impl Sync for WindowScale
impl Unpin for WindowScale
impl UnwindSafe for WindowScale
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<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more