SchemeProvider

Trait SchemeProvider 

Source
pub trait SchemeProvider:
    Clone
    + Send
    + Sync
    + 'static {
    type Scheme: Scheme;

    // Required method
    fn scheme(&self, epoch: Epoch) -> Option<Arc<Self::Scheme>>;
}
Expand description

Supplies the signing scheme the marshal should use for a given epoch.

Required Associated Types§

Source

type Scheme: Scheme

The signing scheme to provide.

Required Methods§

Source

fn scheme(&self, epoch: Epoch) -> Option<Arc<Self::Scheme>>

Return the signing scheme that corresponds to epoch.

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§