pub struct MessageReceivedEvent {
pub message: Message,
}
Expand description
This struct is used when DHT receives a message from another node on the DHT.
The event is sent after the DHT has finished all other processing for the message.
Fields§
§message: Message
Trait Implementations§
Source§impl Clone for MessageReceivedEvent
impl Clone for MessageReceivedEvent
Source§fn clone(&self) -> MessageReceivedEvent
fn clone(&self) -> MessageReceivedEvent
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 moreSource§impl Debug for MessageReceivedEvent
impl Debug for MessageReceivedEvent
Source§impl PartialEq for MessageReceivedEvent
impl PartialEq for MessageReceivedEvent
impl StructuralPartialEq for MessageReceivedEvent
Auto Trait Implementations§
impl Freeze for MessageReceivedEvent
impl RefUnwindSafe for MessageReceivedEvent
impl Send for MessageReceivedEvent
impl Sync for MessageReceivedEvent
impl Unpin for MessageReceivedEvent
impl UnwindSafe for MessageReceivedEvent
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