pub enum Freio {
Released,
Engaged {
at_unix: u64,
},
}Expand description
Whether an operator has braked a session’s automation.
Variants§
Released
Not braked. What every pre-freio session record deserialises to, so landing this type is a no-op on existing state.
Engaged
Every pane in this session whose crate::yurai::Yurai is
Automation refuses input.
Human and Unknown panes are untouched — the operator keeps typing, always. That is not a convenience; a brake that can lock you out of your own terminal during the emergency you engaged it for is worse than no brake.
at_unix is stamped BY THE DAEMON. No wire request carries it, so
a backdated brake has no syntax.
Implementations§
Source§impl Freio
impl Freio
pub const fn is_engaged(self) -> bool
Sourcepub const fn engaged_at(self) -> Option<u64>
pub const fn engaged_at(self) -> Option<u64>
When the brake was engaged, if it is.
Trait Implementations§
impl Copy for Freio
Source§impl<'de> Deserialize<'de> for Freio
impl<'de> Deserialize<'de> for Freio
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Freio
impl StructuralPartialEq for Freio
Auto Trait Implementations§
impl Freeze for Freio
impl RefUnwindSafe for Freio
impl Send for Freio
impl Sync for Freio
impl Unpin for Freio
impl UnsafeUnpin for Freio
impl UnwindSafe for Freio
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