Trait Hasher
pub trait Hasher {
// Required method
fn hash(topic_string: String) -> TopicHash;
}
Available on crate feature
gossipsub
only.Expand description
A generic trait that can be extended for various hashing types for a topic.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.