pub struct PostureDecl {
pub declared: Posture,
pub declared_timeout_secs: u64,
pub booted: Option<(Posture, u64)>,
}Expand description
What the failure posture is, and what is waiting (§12d, P16). A generation switched live can strengthen the posture or shorten the timeout at once; a weaker declaration takes effect when it is booted, because the posture follows the booted generation until then.
Fields§
§declared: PostureWhat the running generation declares.
declared_timeout_secs: u64§booted: Option<(Posture, u64)>What the booted generation declares, if it declares one.
Implementations§
Source§impl PostureDecl
impl PostureDecl
pub fn of(current: &FileConfig, booted: Option<&FileConfig>) -> PostureDecl
Sourcepub fn timeout_in_force(&self) -> u64
pub fn timeout_in_force(&self) -> u64
The shorter of the two timeouts.
Sourcepub fn weaker_waiting(&self) -> bool
pub fn weaker_waiting(&self) -> bool
Whether a weaker declaration waits for the next boot.
Trait Implementations§
Source§impl Clone for PostureDecl
impl Clone for PostureDecl
Source§fn clone(&self) -> PostureDecl
fn clone(&self) -> PostureDecl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostureDecl
impl Debug for PostureDecl
Source§impl Default for PostureDecl
impl Default for PostureDecl
Source§fn default() -> PostureDecl
fn default() -> PostureDecl
Returns the “default value” for a type. Read more
Source§impl PartialEq for PostureDecl
impl PartialEq for PostureDecl
impl Eq for PostureDecl
impl StructuralPartialEq for PostureDecl
Auto Trait Implementations§
impl Freeze for PostureDecl
impl RefUnwindSafe for PostureDecl
impl Send for PostureDecl
impl Sync for PostureDecl
impl Unpin for PostureDecl
impl UnsafeUnpin for PostureDecl
impl UnwindSafe for PostureDecl
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