pub enum RequestResponseError {
Rejected,
Canceled,
Timeout,
NotConnected,
TooLargePayload,
UnsupportedProtocol,
}
Expand description
Request-response error.
Variants§
Rejected
Request was rejected.
Canceled
Request was canceled by the local node.
Timeout
Request timed out.
NotConnected
Litep2p isn’t connected to the peer.
TooLargePayload
Too large payload.
UnsupportedProtocol
Protocol not supported.
Trait Implementations§
source§impl Clone for RequestResponseError
impl Clone for RequestResponseError
source§fn clone(&self) -> RequestResponseError
fn clone(&self) -> RequestResponseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RequestResponseError
impl Debug for RequestResponseError
source§impl PartialEq for RequestResponseError
impl PartialEq for RequestResponseError
source§fn eq(&self, other: &RequestResponseError) -> bool
fn eq(&self, other: &RequestResponseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RequestResponseError
impl StructuralPartialEq for RequestResponseError
Auto Trait Implementations§
impl Freeze for RequestResponseError
impl RefUnwindSafe for RequestResponseError
impl Send for RequestResponseError
impl Sync for RequestResponseError
impl Unpin for RequestResponseError
impl UnwindSafe for RequestResponseError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.