Struct server::gameplay_socket::PeerIdentifier
source · [−]pub struct PeerIdentifier(pub u128);
Expand description
A randomly generated identifier that matches on specific peer. This is included in plaintext at the start of each UDP packet from the peer.
Tuple Fields
0: u128
Trait Implementations
sourceimpl Clone for PeerIdentifier
impl Clone for PeerIdentifier
sourcefn clone(&self) -> PeerIdentifier
fn clone(&self) -> PeerIdentifier
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Hash for PeerIdentifier
impl Hash for PeerIdentifier
sourceimpl PartialEq<PeerIdentifier> for PeerIdentifier
impl PartialEq<PeerIdentifier> for PeerIdentifier
sourcefn eq(&self, other: &PeerIdentifier) -> bool
fn eq(&self, other: &PeerIdentifier) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PeerIdentifier) -> bool
fn ne(&self, other: &PeerIdentifier) -> bool
This method tests for !=
.
impl Copy for PeerIdentifier
impl Eq for PeerIdentifier
impl StructuralEq for PeerIdentifier
impl StructuralPartialEq for PeerIdentifier
Auto Trait Implementations
impl RefUnwindSafe for PeerIdentifier
impl Send for PeerIdentifier
impl Sync for PeerIdentifier
impl Unpin for PeerIdentifier
impl UnwindSafe for PeerIdentifier
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more