pub trait Hasher {
    // Required method
    fn hash(topic: String) -> TopicHash;
}
Expand description

A generic trait that can be extended for various hashing frame for a topic.

Required Methods§

source

fn hash(topic: String) -> TopicHash

The function that takes a topic string and creates a topic hash.

Implementors§