[][src]Enum smoltcp::wire::TcpControl

pub enum TcpControl {
    None,
    Psh,
    Syn,
    Fin,
    Rst,
}

The possible control flags of a Transmission Control Protocol packet.

Variants

None
Psh
Syn
Fin
Rst

Methods

impl Control[src]

pub fn len(self) -> usize[src]

Return the length of a control flag, in terms of sequence space.

pub fn quash_psh(self) -> Control[src]

Turn the PSH flag into no flag, and keep the rest as-is.

Trait Implementations

impl Clone for Control[src]

impl Copy for Control[src]

impl Debug for Control[src]

impl Eq for Control[src]

impl PartialEq<Control> for Control[src]

impl StructuralEq for Control[src]

impl StructuralPartialEq for Control[src]

Auto Trait Implementations

impl RefUnwindSafe for Control

impl Send for Control

impl Sync for Control

impl Unpin for Control

impl UnwindSafe for Control

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.