Skip to main content

Consumers

Trait Consumers 

Source
pub trait Consumers {
    // Required methods
    fn required(&self) -> Vec<String>;
    fn deploy(
        &mut self,
        id: &str,
        credential: &Credential,
        generation: u64,
    ) -> Outcome;
    fn check(&mut self, id: &str) -> Outcome;
    fn redeploy_previous(&mut self, id: &str) -> Outcome;
}
Expand description

What uses the credential, usually node targets. Each consumer is identified by a stable id.

Required Methods§

Source

fn required(&self) -> Vec<String>

Source

fn deploy( &mut self, id: &str, credential: &Credential, generation: u64, ) -> Outcome

Source

fn check(&mut self, id: &str) -> Outcome

Source

fn redeploy_previous(&mut self, id: &str) -> Outcome

Put the previous credential back (the rollback rule).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§