Struct xstack_kad::KBucketKey
source · pub struct KBucketKey(/* private fields */);
Expand description
The key type of KBucketTable
Implementations§
source§impl KBucketKey
impl KBucketKey
pub fn distance(&self, rhs: &KBucketKey) -> KBucketDistance
Trait Implementations§
source§impl Clone for KBucketKey
impl Clone for KBucketKey
source§fn clone(&self) -> KBucketKey
fn clone(&self) -> KBucketKey
Returns a copy 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 KBucketKey
impl Debug for KBucketKey
source§impl From<&[u8]> for KBucketKey
impl From<&[u8]> for KBucketKey
source§impl From<&PeerId> for KBucketKey
impl From<&PeerId> for KBucketKey
source§impl From<PeerId> for KBucketKey
impl From<PeerId> for KBucketKey
source§impl Hash for KBucketKey
impl Hash for KBucketKey
source§impl Ord for KBucketKey
impl Ord for KBucketKey
source§fn cmp(&self, other: &KBucketKey) -> Ordering
fn cmp(&self, other: &KBucketKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for KBucketKey
impl PartialEq for KBucketKey
source§impl PartialOrd for KBucketKey
impl PartialOrd for KBucketKey
impl Copy for KBucketKey
impl Eq for KBucketKey
impl StructuralPartialEq for KBucketKey
Auto Trait Implementations§
impl Freeze for KBucketKey
impl RefUnwindSafe for KBucketKey
impl Send for KBucketKey
impl Sync for KBucketKey
impl Unpin for KBucketKey
impl UnwindSafe for KBucketKey
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)