TaskId

Trait TaskId 

Source
pub trait TaskId:
    Clone
    + Copy
    + Eq
    + PartialEq
    + Hash
    + Ord
    + ToString
    + Debug
    + FromStr<Err = Error>
    + Send
    + Sync
    + AsRef<[u8]> {
    // Required methods
    fn generate(namespace: Self, msg: &[u8]) -> Self;
    fn clique_namespace() -> Self;
}

Required Methods§

Source

fn generate(namespace: Self, msg: &[u8]) -> Self

Source

fn clique_namespace() -> Self

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.

Implementors§