Struct libp2p_gossipsub::Topic
source · [−]pub struct Topic<H: Hasher> { /* private fields */ }
Expand description
A gossipsub topic.
Implementations
Trait Implementations
sourceimpl<H: Ord + Hasher> Ord for Topic<H>
impl<H: Ord + Hasher> Ord for Topic<H>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<H: PartialEq + Hasher> PartialEq<Topic<H>> for Topic<H>
impl<H: PartialEq + Hasher> PartialEq<Topic<H>> for Topic<H>
sourceimpl<H: PartialOrd + Hasher> PartialOrd<Topic<H>> for Topic<H>
impl<H: PartialOrd + Hasher> PartialOrd<Topic<H>> for Topic<H>
sourcefn partial_cmp(&self, other: &Topic<H>) -> Option<Ordering>
fn partial_cmp(&self, other: &Topic<H>) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<H: Eq + Hasher> Eq for Topic<H>
impl<H: Hasher> StructuralEq for Topic<H>
impl<H: Hasher> StructuralPartialEq for Topic<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for Topic<H>where
H: RefUnwindSafe,
impl<H> Send for Topic<H>where
H: Send,
impl<H> Sync for Topic<H>where
H: Sync,
impl<H> Unpin for Topic<H>where
H: Unpin,
impl<H> UnwindSafe for Topic<H>where
H: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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