Enum p2p::UdpRendezvousConnectError[][src]

pub enum UdpRendezvousConnectError<Ei, Eo> {
    Bind(Error),
    Rebind(Error),
    IfAddrs(Error),
    ChannelClosed,
    ChannelTimedOut,
    ChannelRead(Ei),
    ChannelWrite(Eo),
    SerialiseMsg(Error),
    DeserializeMsg(Error),
    SocketWrite(Error),
    SetTtl(Error),
    AllAttemptsFailed(Vec<HolePunchError>, Option<Box<BindPublicError>>, Option<Box<RendezvousAddrError>>),
}

Errors returned by UdpSocketExt::rendezvous_connect.

Variants

Failure to bind socket to some address.

Failure to bind when generating multiple sockets for hole punching with different TTLs.

Failure to get socket bind addresses.

Rendezvous connection info exchange channel was closed.

Rendezvous connection info exchange timed out.

Failure to read from rendezvous connection info exchange channel.

Failure to write to rendezvous connection info exchange channel.

Failure to serialise a message

Failure to deserialize message received from rendezvous connection info exchange channel.

Failure to send packets to the socket.

Failure to set socket TTL.

Used when all rendezvous connection attempts failed.

Trait Implementations

impl<Ei: Debug, Eo: Debug> Debug for UdpRendezvousConnectError<Ei, Eo>
[src]

Formats the value using the given formatter. Read more

impl<Ei, Eo> Display for UdpRendezvousConnectError<Ei, Eo> where
    Ei: Error,
    Eo: Error
[src]

Formats the value using the given formatter. Read more

impl<Ei, Eo> Error for UdpRendezvousConnectError<Ei, Eo> where
    Ei: Error,
    Eo: Error
[src]

The lower-level cause of this error, if any. Read more

This method is soft-deprecated. Read more

Auto Trait Implementations

impl<Ei, Eo> Send for UdpRendezvousConnectError<Ei, Eo> where
    Ei: Send,
    Eo: Send

impl<Ei, Eo> Sync for UdpRendezvousConnectError<Ei, Eo> where
    Ei: Sync,
    Eo: Sync