pub enum NotificationCommand {
OpenSubstream {
peers: HashSet<PeerId>,
},
CloseSubstream {
peers: HashSet<PeerId>,
},
ForceClose {
peer: PeerId,
},
}Expand description
Notification commands sent to the protocol.
Variants§
OpenSubstream
Open substreams to one or more peers.
CloseSubstream
Close substreams to one or more peers.
ForceClose
Force close the connection because notification channel is clogged.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NotificationCommand
impl RefUnwindSafe for NotificationCommand
impl Send for NotificationCommand
impl Sync for NotificationCommand
impl Unpin for NotificationCommand
impl UnwindSafe for NotificationCommand
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