pub struct StatusWorkflow;Expand description
Status rules for reporting Auths state.
The consumed surface is StatusWorkflow::compute_readiness (per-device
readiness from expiry/revocation) and StatusWorkflow::next_steps_from_readiness
(the next-step rules). The CLI (auths status) loads identity/devices/agent
itself and calls these — they are the single source of truth for the rules.
Implementations§
Source§impl StatusWorkflow
impl StatusWorkflow
Sourcepub fn next_steps_from_readiness(
identity_present: bool,
readinesses: &[DeviceReadiness],
agent_running: bool,
) -> Vec<NextStep>
pub fn next_steps_from_readiness( identity_present: bool, readinesses: &[DeviceReadiness], agent_running: bool, ) -> Vec<NextStep>
The next-step rules, keyed on the minimal facts they need — identity presence, each device’s readiness, and whether the signing agent is live. The single source of truth for these rules, including the recovery single-point-of-failure signpost, so any presentation layer (the CLI) shares them rather than re-deriving its own.
Args:
identity_present: whether an identity is initialized.readinesses: the readiness of each device in the roster.agent_running: whether the signing agent is live.
Auto Trait Implementations§
impl Freeze for StatusWorkflow
impl RefUnwindSafe for StatusWorkflow
impl Send for StatusWorkflow
impl Sync for StatusWorkflow
impl Unpin for StatusWorkflow
impl UnsafeUnpin for StatusWorkflow
impl UnwindSafe for StatusWorkflow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more