pub enum PPEvent {
NewPeer(PeerID),
RemovePeer(PeerID),
}
Expand description
Defines PP
events.
Variants§
Implementations§
Source§impl PPEvent
impl PPEvent
pub(super) fn get_peer_id(&self) -> Option<&PeerID>
pub(super) fn variant_name(&self) -> &'static str
Trait Implementations§
Source§impl From<PPEvent> for PeerPoolEvent
impl From<PPEvent> for PeerPoolEvent
Source§impl ToEventStruct for PPEvent
impl ToEventStruct for PPEvent
type EventStruct = PeerPoolEvent
fn to_struct(self) -> Self::EventStruct
Auto Trait Implementations§
impl Freeze for PPEvent
impl RefUnwindSafe for PPEvent
impl Send for PPEvent
impl Sync for PPEvent
impl Unpin for PPEvent
impl UnwindSafe for PPEvent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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