Struct ipfs_embed_net::Topic[]

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

A gossipsub topic.

Implementations

impl<H> Topic<H> where
    H: Hasher, 

pub fn new(topic: impl Into<String>) -> Topic<H>

pub fn hash(&self) -> TopicHash

Trait Implementations

impl<H> Clone for Topic<H> where
    H: Hasher + Clone

impl<H> Debug for Topic<H> where
    H: Hasher + Debug

impl<H> Display for Topic<H> where
    H: Hasher, 

impl<H> Eq for Topic<H> where
    H: Hasher + Eq

impl<H> From<Topic<H>> for TopicHash where
    H: Hasher, 

impl<H> Ord for Topic<H> where
    H: Hasher + Ord

impl<H> PartialEq<Topic<H>> for Topic<H> where
    H: Hasher + PartialEq<H>, 

impl<H> PartialOrd<Topic<H>> for Topic<H> where
    H: Hasher + PartialOrd<H>, 

impl<H> StructuralEq for Topic<H> where
    H: Hasher, 

impl<H> StructuralPartialEq for Topic<H> where
    H: Hasher, 

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> Instrument for T[src]

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

impl<T> References<RawCodec> for T

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>,