Enum ntap_core::net::socket::SocketStatus
source · pub enum SocketStatus {
Show 13 variants
Closed,
Listen,
SynSent,
SynReceived,
Established,
FinWait1,
FinWait2,
CloseWait,
Closing,
LastAck,
TimeWait,
DeleteTcb,
Unknown,
}
Variants§
Closed
Listen
SynSent
SynReceived
Established
FinWait1
FinWait2
CloseWait
Closing
LastAck
TimeWait
DeleteTcb
Unknown
Implementations§
source§impl SocketStatus
impl SocketStatus
pub fn from_netstat2_state(state: TcpState) -> Self
pub fn from_xenet_tcp_flags(flags: u8) -> Self
Trait Implementations§
source§impl Clone for SocketStatus
impl Clone for SocketStatus
source§fn clone(&self) -> SocketStatus
fn clone(&self) -> SocketStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SocketStatus
impl Debug for SocketStatus
source§impl<'de> Deserialize<'de> for SocketStatus
impl<'de> Deserialize<'de> for SocketStatus
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SocketStatus
impl Display for SocketStatus
source§impl PartialEq for SocketStatus
impl PartialEq for SocketStatus
source§fn eq(&self, other: &SocketStatus) -> bool
fn eq(&self, other: &SocketStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SocketStatus
impl Serialize for SocketStatus
impl Copy for SocketStatus
impl StructuralPartialEq for SocketStatus
Auto Trait Implementations§
impl Freeze for SocketStatus
impl RefUnwindSafe for SocketStatus
impl Send for SocketStatus
impl Sync for SocketStatus
impl Unpin for SocketStatus
impl UnwindSafe for SocketStatus
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more