Struct libp2p_floodsub::TopicHash
source · pub struct TopicHash { /* private fields */ }
Expand description
Represents the hash of a topic.
Instead of a using the topic as a whole, the API of floodsub uses a hash of the topic. You only have to build the hash once, then use it everywhere.
Implementations
Trait Implementations
impl Eq for TopicHash
impl StructuralEq for TopicHash
impl StructuralPartialEq for TopicHash
Auto Trait Implementations
impl RefUnwindSafe for TopicHash
impl Send for TopicHash
impl Sync for TopicHash
impl Unpin for TopicHash
impl UnwindSafe for TopicHash
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