Enum litep2p::protocol::notification::NotificationError
source · pub enum NotificationError {
Rejected,
NoConnection,
ChannelClogged,
ValidationPending,
DialFailure,
EssentialTaskClosed,
}
Expand description
Notification error.
Variants§
Rejected
Remote rejected the substream.
NoConnection
Connection to peer doesn’t exist.
ChannelClogged
Synchronous notification channel is clogged.
ValidationPending
Validation for a previous substream still pending.
DialFailure
Failed to dial peer.
EssentialTaskClosed
Notification protocol has been closed.
Trait Implementations§
source§impl Clone for NotificationError
impl Clone for NotificationError
source§fn clone(&self) -> NotificationError
fn clone(&self) -> NotificationError
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 NotificationError
impl Debug for NotificationError
source§impl PartialEq for NotificationError
impl PartialEq for NotificationError
source§fn eq(&self, other: &NotificationError) -> bool
fn eq(&self, other: &NotificationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NotificationError
impl StructuralPartialEq for NotificationError
Auto Trait Implementations§
impl Freeze for NotificationError
impl RefUnwindSafe for NotificationError
impl Send for NotificationError
impl Sync for NotificationError
impl Unpin for NotificationError
impl UnwindSafe for NotificationError
Blanket Implementations§
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.