Struct sc_peerset::IncomingIndex
source · [−]pub struct IncomingIndex(pub u64);
Expand description
Opaque identifier for an incoming connection. Allocated by the network.
Tuple Fields
0: u64
Trait Implementations
sourceimpl Clone for IncomingIndex
impl Clone for IncomingIndex
sourcefn clone(&self) -> IncomingIndex
fn clone(&self) -> IncomingIndex
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 Debug for IncomingIndex
impl Debug for IncomingIndex
sourceimpl From<u64> for IncomingIndex
impl From<u64> for IncomingIndex
sourcefn from(val: u64) -> IncomingIndex
fn from(val: u64) -> IncomingIndex
Performs the conversion.
sourceimpl Hash for IncomingIndex
impl Hash for IncomingIndex
sourceimpl PartialEq<IncomingIndex> for IncomingIndex
impl PartialEq<IncomingIndex> for IncomingIndex
sourcefn eq(&self, other: &IncomingIndex) -> bool
fn eq(&self, other: &IncomingIndex) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IncomingIndex) -> bool
fn ne(&self, other: &IncomingIndex) -> bool
This method tests for !=
.
impl Copy for IncomingIndex
impl Eq for IncomingIndex
impl StructuralEq for IncomingIndex
impl StructuralPartialEq for IncomingIndex
Auto Trait Implementations
impl RefUnwindSafe for IncomingIndex
impl Send for IncomingIndex
impl Sync for IncomingIndex
impl Unpin for IncomingIndex
impl UnwindSafe for IncomingIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more