pub struct ConnectEvent {
pub peer_id: PeerId,
pub addr: SocketAddr,
pub client_guid: u64,
pub shard_id: usize,
}Expand description
Hook payload for a newly connected peer.
Fields§
§peer_id: PeerId§addr: SocketAddr§client_guid: u64§shard_id: usizeTrait Implementations§
Source§impl Clone for ConnectEvent
impl Clone for ConnectEvent
Source§fn clone(&self) -> ConnectEvent
fn clone(&self) -> ConnectEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectEvent
Source§impl Debug for ConnectEvent
impl Debug for ConnectEvent
impl Eq for ConnectEvent
Source§impl PartialEq for ConnectEvent
impl PartialEq for ConnectEvent
Source§fn eq(&self, other: &ConnectEvent) -> bool
fn eq(&self, other: &ConnectEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectEvent
Auto Trait Implementations§
impl Freeze for ConnectEvent
impl RefUnwindSafe for ConnectEvent
impl Send for ConnectEvent
impl Sync for ConnectEvent
impl Unpin for ConnectEvent
impl UnsafeUnpin for ConnectEvent
impl UnwindSafe for ConnectEvent
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