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
Bind(Error)
Failure to bind socket to some address.
Rebind(Error)
Failure to bind when generating multiple sockets for hole punching with different TTLs.
IfAddrs(Error)
Failure to get socket bind addresses.
ChannelClosed
Rendezvous connection info exchange channel was closed.
ChannelTimedOut
Rendezvous connection info exchange timed out.
ChannelRead(Ei)
Failure to read from rendezvous connection info exchange channel.
ChannelWrite(Eo)
Failure to write to rendezvous connection info exchange channel.
SerialiseMsg(Error)
Failure to serialise a message
DeserializeMsg(Error)
Failure to deserialize message received from rendezvous connection info exchange channel.
SocketWrite(Error)
Failure to send packets to the socket.
SetTtl(Error)
Failure to set socket TTL.
AllAttemptsFailed(Vec<HolePunchError>, Option<Box<BindPublicError>>, Option<Box<RendezvousAddrError>>)
Used when all rendezvous connection attempts failed.
Trait Implementations
impl<Ei: Debug, Eo: Debug> Debug for UdpRendezvousConnectError<Ei, Eo>
[src]
impl<Ei: Debug, Eo: Debug> Debug for UdpRendezvousConnectError<Ei, Eo>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Ei, Eo> Display for UdpRendezvousConnectError<Ei, Eo> where
Ei: Error,
Eo: Error,
[src]
impl<Ei, Eo> Display for UdpRendezvousConnectError<Ei, Eo> where
Ei: Error,
Eo: Error,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Ei, Eo> Error for UdpRendezvousConnectError<Ei, Eo> where
Ei: Error,
Eo: Error,
[src]
impl<Ei, Eo> Error for UdpRendezvousConnectError<Ei, Eo> where
Ei: Error,
Eo: Error,
Auto Trait Implementations
impl<Ei, Eo> Send for UdpRendezvousConnectError<Ei, Eo> where
Ei: Send,
Eo: Send,
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,
impl<Ei, Eo> Sync for UdpRendezvousConnectError<Ei, Eo> where
Ei: Sync,
Eo: Sync,