[][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,
    Other(String),
}

Networking Specific

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 connection was interrupted while in progress

UnexpectedNetEof

Unexpected end of connection

NetDriverBuggy

Connection Driver is buggy

Other(String)

An error ccured because of a malfunction or bug

Trait Implementations

impl PartialEq<Networking> for Networking[src]

impl Clone for Networking[src]

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

Performs copy-assignment from source. Read more

impl Eq for Networking[src]

impl Debug for Networking[src]

impl Serialize for Networking[src]

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

Auto Trait Implementations

Blanket Implementations

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> From<T> for T[src]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]