Enum trust_dns::tcp::TcpState [] [src]

pub enum TcpState {
    WillReadLength,
    WillRead {
        length: u16,
    },
    WillWriteLength,
    WillWrite,
    Done,
}

Variants

WillReadLength
WillRead

Fields

length
WillWriteLength
WillWrite
Done

Methods

impl TcpState

fn initial_state(tcp_type: TcpType) -> Self

fn next_state(&self, tcp_type: TcpType) -> Self

Trait Implementations

Derived Implementations

impl Debug for TcpState

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for TcpState

impl Clone for TcpState

fn clone(&self) -> TcpState

1.0.0fn clone_from(&mut self, source: &Self)

impl Eq for TcpState

impl PartialEq for TcpState

fn eq(&self, __arg_0: &TcpState) -> bool

fn ne(&self, __arg_0: &TcpState) -> bool