Skip to main content

ControllerPolicy

Trait ControllerPolicy 

Source
pub trait ControllerPolicy: Send + Sync {
    // Required method
    fn allows(&self, public_key: &[u8; 32]) -> bool;
}
Expand description

Who may control this node: a set of controller public keys.

Required Methods§

Source

fn allows(&self, public_key: &[u8; 32]) -> bool

True if a request signed by public_key may be served.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ControllerPolicy for Vec<[u8; 32]>

Source§

fn allows(&self, public_key: &[u8; 32]) -> bool

Implementors§