[][src]Enum custom_codes::Networking

pub enum Networking {
    NetworkAccessDenied,
    HostUnreachable,
    ConnectionReset,
    ConnectionAborted,
    NotConnected,
    HeadersCorrupted,
    ServerNotResponding,
    IpInUse,
    PortInUse,
    AddrInUse,
    IpAvailable,
    BrokenPipe,
    NetConnExists,
    InvalidNetInput,
    InvalidNetData,
    NetTimedOut,
    Interrupted,
    UnexpectedNetEof,
    NetDriverBuggy,
    Unspecified,
}

Networking Specific

Examples

let foo = Networking::NetworkAccessDenied;
assert_eq!(foo, Networking::NetworkAccessDenied);

Variants

NetworkAccessDenied

Permission to access network is denied

HostUnreachable

Network is available but unable to reach destination host

ConnectionReset

Connection was reset and has been terminated

ConnectionAborted

Connection to the address has been stopped

NotConnected

The network operation failed because process has not finished connecting

HeadersCorrupted

Headers for a particular protocol corrupted

ServerNotResponding

Server access was reached but didnt respond

IpInUse

IP Address is already in use

PortInUse

Port is in use but IP is available

AddrInUse

The IP address and Port are both in use

IpAvailable

IP Address is available

BrokenPipe

Network Operation Failed because a pipe is broken

NetConnExists

Connection already exists

InvalidNetInput

Operation parameters are Invalid

InvalidNetData

Operation parameters are fine but operation data is invalid

NetTimedOut

The network operation timed out

Interrupted

The Network Operation was interrupted and can be resumed

UnexpectedNetEof

Unexpected end of connection

NetDriverBuggy

Connection Driver is buggy

Unspecified

Network Unspecified

Trait Implementations

impl Clone for Networking[src]

impl Debug for Networking[src]

impl<'de> Deserialize<'de> for Networking[src]

impl Eq for Networking[src]

impl PartialEq<Networking> for Networking[src]

impl Serialize for Networking[src]

impl StructuralEq for Networking[src]

impl StructuralPartialEq for Networking[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.