[][src]Struct libp2p_gossipsub::Topic

pub struct Topic<H: Hasher> { /* fields omitted */ }

A gossipsub topic.

Implementations

impl<H: Hasher> Topic<H>[src]

pub fn new(topic: impl Into<String>) -> Self[src]

pub fn hash(&self) -> TopicHash[src]

Trait Implementations

impl<H: Clone + Hasher> Clone for Topic<H>[src]

impl<H: Debug + Hasher> Debug for Topic<H>[src]

impl<H: Hasher> Display for Topic<H>[src]

impl<H: Eq + Hasher> Eq for Topic<H>[src]

impl<H: Hasher> From<Topic<H>> for TopicHash[src]

impl<H: Ord + Hasher> Ord for Topic<H>[src]

impl<H: PartialEq + Hasher> PartialEq<Topic<H>> for Topic<H>[src]

impl<H: PartialOrd + Hasher> PartialOrd<Topic<H>> for Topic<H>[src]

impl<H: Hasher> StructuralEq for Topic<H>[src]

impl<H: Hasher> StructuralPartialEq for Topic<H>[src]

Auto Trait Implementations

impl<H> RefUnwindSafe for Topic<H> where
    H: RefUnwindSafe
[src]

impl<H> Send for Topic<H> where
    H: Send
[src]

impl<H> Sync for Topic<H> where
    H: Sync
[src]

impl<H> Unpin for Topic<H> where
    H: Unpin
[src]

impl<H> UnwindSafe for Topic<H> where
    H: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,