pub struct PeerMessage {
pub peer: Arc<Peer>,
pub message: Message,
}
Expand description
Event emitted when the peer receives a network message
Fields§
§peer: Arc<Peer>
§message: Message
Trait Implementations§
Source§impl Clone for PeerMessage
impl Clone for PeerMessage
Source§fn clone(&self) -> PeerMessage
fn clone(&self) -> PeerMessage
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PeerMessage
impl RefUnwindSafe for PeerMessage
impl Send for PeerMessage
impl Sync for PeerMessage
impl Unpin for PeerMessage
impl UnwindSafe for PeerMessage
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