pub trait ProtoHashablewhere
    Self: HashClear + Clone + Message + Default,{
    // Required methods
    fn calculate_hash(&self) -> Hash;
    fn from_hex(hex_value: String) -> Result<Self, ErrorInfo>;
    fn div_mod(&self, bucket: usize) -> i64;
}

Required Methods§

source

fn calculate_hash(&self) -> Hash

source

fn from_hex(hex_value: String) -> Result<Self, ErrorInfo>

source

fn div_mod(&self, bucket: usize) -> i64

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ProtoHashable for Twhere T: HashClear + Clone + Message + Default,