Enum trust_dns::tcp::TcpState
[−]
[src]
pub enum TcpState { WillReadLength, WillRead { length: u16, }, WillWriteLength, WillWrite, Done, }
Variants
WillReadLength
WillRead
Fields of WillRead
length: u16 |
WillWriteLength
WillWrite
Done
Methods
impl TcpState
[src]
fn initial_state(tcp_type: TcpType) -> Self
fn next_state(&self, tcp_type: TcpType) -> Self
Trait Implementations
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 !=
.
impl Eq 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