pub enum SynWindowScale {
Present(u8),
Absent,
Unknown,
}Expand description
What a SYN’s options said about window scaling. Absent is a proven
negative (the options were walked completely and carried no window-scale
option), which is different from Unknown (truncated or malformed
options), where no conclusion may be drawn: treating an unexamined SYN
as a refusal would permanently disable scaling for the connection even
when a complete retransmitted SYN later shows the option.
Variants§
Present(u8)
The SYN offered window scaling with this shift.
Absent
The options were fully examined and carry no window-scale option.
Unknown
The options could not be fully examined (capture truncation or a malformed option); nothing can be concluded.
Trait Implementations§
Source§impl Clone for SynWindowScale
impl Clone for SynWindowScale
impl Copy for SynWindowScale
Source§impl Debug for SynWindowScale
impl Debug for SynWindowScale
impl Eq for SynWindowScale
Source§impl PartialEq for SynWindowScale
impl PartialEq for SynWindowScale
impl StructuralPartialEq for SynWindowScale
Auto Trait Implementations§
impl Freeze for SynWindowScale
impl RefUnwindSafe for SynWindowScale
impl Send for SynWindowScale
impl Sync for SynWindowScale
impl Unpin for SynWindowScale
impl UnsafeUnpin for SynWindowScale
impl UnwindSafe for SynWindowScale
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