Enum qp2p::Error [−][src]
Error types returned by the qp2p public API.
Variants (Non-exhaustive)
Error occurred when attempting to connect to any of the peers provided as a list of contacts.
No peers/contects found in the bootstrap nodes list.
InvalidPath(String)
The path provided is not valid for the operation.
The user’s home directory couldn’t be determined.
Io(Error)
I/O failure when attempting to access a local resource.
Failure encountered when establishing a connection with another peer.
Connection(ConnectionError)
An existing connection with another peer has been lost.
Endpoint(EndpointError)
Failed to create a new endpoint.
Certificate for secure communication couldn’t be parsed.
The certificate’s private key for secure communication couldn’t be parsed.
The contacts list was found empty when attempting to contact peers for the echo service.
Timeout occurred when awaiting for a response from any of the peers contacted for the echo service.
EchoServiceFailure(String)
Failure occurred when sending an echo request.
TLS(TLSError)
TLS error
Serialisation(Error)
Serialisation error, which can happen on different type of data.
Base64Decode(DecodeError)
Failed to decode a base64-encoded string.
Configuration(String)
An error occurred which could be resolved by changing some config value.
InvalidMsgFlag(u8)
The message type flag decoded in an incoming stream is invalid/unsupported.
StreamWrite(WriteError)
Error occurred when trying to write on a currently opened message stream.
StreamRead(ReadExactError)
The expected amount of message bytes couldn’t be read from the stream.
IgdAddPort(AddAnyPortError)
Failure when trying to map a new port using IGD for automatic port forwarding.
IgdRenewPort(AddPortError)
Failure when trying to renew leasing of a port mapped using IGD.
IgdSearch(SearchError)
IGD gateway deice was not found.
IGD is not supported on IPv6
CertificateGen(RcgenError)
An error was encountered when trying to either generate or serialise a self-signed certificate.
Response message received contains an empty payload.
The type of message received is not the expected one.
MaxLengthExceeded(usize)
The message exceeds the maximum message length allowed.
Incorrect Public Address provided
Missing connection
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<AddAnyPortError> for Error
[src]
fn from(source: AddAnyPortError) -> Self
[src]
impl From<AddPortError> for Error
[src]
fn from(source: AddPortError) -> Self
[src]
impl From<Box<ErrorKind, Global>> for Error
[src]
impl From<ConnectError> for Error
[src]
impl From<ConnectionError> for Error
[src]
fn from(source: ConnectionError) -> Self
[src]
impl From<DecodeError> for Error
[src]
fn from(source: DecodeError) -> Self
[src]
impl From<EndpointError> for Error
[src]
fn from(source: EndpointError) -> Self
[src]
impl From<Error> for Error
[src]
impl From<RcgenError> for Error
[src]
fn from(source: RcgenError) -> Self
[src]
impl From<ReadExactError> for Error
[src]
fn from(source: ReadExactError) -> Self
[src]
impl From<SearchError> for Error
[src]
fn from(source: SearchError) -> Self
[src]
impl From<TLSError> for Error
[src]
impl From<WriteError> for Error
[src]
fn from(source: WriteError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,