[][src]Enum reliudp::SocketStatus

pub enum SocketStatus {
    SynSent,
    SynReceived,
    TimeoutError(u64),
    Connected,
    TerminateSent(u64),
    TerminateReceived(u64),
}

Represents the internal connection status of the Socket

Variants

SynSent
SynReceived
TimeoutError(u64)
Connected
TerminateSent(u64)
TerminateReceived(u64)

Methods

impl SocketStatus[src]

pub fn is_connected(self) -> bool[src]

pub fn is_finished(self) -> bool[src]

pub fn is_finished_and_old(self, current_t: u64) -> bool[src]

Returns true if the connection is finished and old enough to be deleted permanently.

Trait Implementations

impl Clone for SocketStatus[src]

impl Copy for SocketStatus[src]

impl Debug for SocketStatus[src]

impl Eq for SocketStatus[src]

impl PartialEq<SocketStatus> for SocketStatus[src]

impl StructuralEq for SocketStatus[src]

impl StructuralPartialEq for SocketStatus[src]

Auto Trait Implementations

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.