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

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

Variants

WillReadLengthWillRead

Fields

length: u16
WillWriteLengthWillWriteDone

Methods

impl TcpState
[src]

fn initial_state(tcp_type: TcpType) -> Self

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

Trait Implementations

impl Debug for TcpState
[src]

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

Formats the value using the given formatter.

impl Copy for TcpState
[src]

impl Clone for TcpState
[src]

fn clone(&self) -> TcpState

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Eq for TcpState
[src]

impl PartialEq for TcpState
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.