pub enum P2pServiceEvent {
Unicast(PeerId, Vec<u8>),
Broadcast(PeerId, Vec<u8>),
Stream(PeerId, Vec<u8>, P2pQuicStream),
}Variants§
Trait Implementations§
Source§impl Debug for P2pServiceEvent
impl Debug for P2pServiceEvent
Source§impl PartialEq for P2pServiceEvent
impl PartialEq for P2pServiceEvent
impl Eq for P2pServiceEvent
impl StructuralPartialEq for P2pServiceEvent
Auto Trait Implementations§
impl Freeze for P2pServiceEvent
impl RefUnwindSafe for P2pServiceEvent
impl Send for P2pServiceEvent
impl Sync for P2pServiceEvent
impl Unpin for P2pServiceEvent
impl UnwindSafe for P2pServiceEvent
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<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.