pub enum SystemEvent {
PeerRemoved(PeerRemovedEvent),
PeerRegistered(PeerCreateParameters),
Shutdown,
}Expand description
Events coming from the system are encoded in this enum
Variants§
Implementations§
Source§impl SystemEvent
impl SystemEvent
pub fn peer_removed(id: PeerId, reason: PeerRemovalReason) -> SystemEvent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemEvent
impl !RefUnwindSafe for SystemEvent
impl Send for SystemEvent
impl Sync for SystemEvent
impl Unpin for SystemEvent
impl !UnwindSafe for SystemEvent
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