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§
fn required(&self) -> Vec<String>
fn deploy( &mut self, id: &str, credential: &Credential, generation: u64, ) -> Outcome
fn check(&mut self, id: &str) -> Outcome
Sourcefn redeploy_previous(&mut self, id: &str) -> Outcome
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".