Enum qp2p::EndpointError
source · [−]pub enum EndpointError {
Config(ConfigError),
Socket(Error),
EndpointEcho {
peer: SocketAddr,
error: RpcError,
},
Upnp(UpnpError),
EndpointVerification {
peer: SocketAddr,
error: RpcError,
},
Unreachable {
public_addr: SocketAddr,
},
}
Expand description
Errors returned from Endpoint::new
.
Variants
Config(ConfigError)
There was a problem with the provided configuration.
Socket(Error)
Failed to bind UDP socket.
EndpointEcho
Failed to query our public address from peer.
Upnp(UpnpError)
Failed to establish UPnP port forwarding.
EndpointVerification
Fields
peer: SocketAddr
The peer we asked to verify our public address.
error: RpcError
The error that occurred.
Failed to verify our public address with peer.
Unreachable
Fields
public_addr: SocketAddr
The public address we thought we should have.
Our determined public address is not reachable.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for EndpointError
impl Send for EndpointError
impl Sync for EndpointError
impl Unpin for EndpointError
impl !UnwindSafe for EndpointError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more