Enum qp2p::EndpointError [−][src]
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.
Tuple Fields of Config
0: ConfigErrorSocket(Error)Failed to bind UDP socket.
Tuple Fields of Socket
0: ErrorFailed to query our public address from peer.
Fields of EndpointEcho
Upnp(UpnpError)Failed to establish UPnP port forwarding.
Tuple Fields of Upnp
0: UpnpErrorFailed to verify our public address with peer.
Fields of EndpointVerification
peer: SocketAddrThe peer we asked to verify our public address.
error: RpcErrorThe error that occurred.
Our determined public address is not reachable.
Fields of Unreachable
public_addr: SocketAddrThe public address we thought we should have.
Trait Implementations
Performs the conversion.
Performs the conversion.