pub struct BreakEvent {
pub kind: BreakKind,
pub duration_secs: u64,
pub enforceable: bool,
pub manual_finish: bool,
pub postpone_available: bool,
pub hints: Vec<String>,
pub hint_rotate_seconds: u64,
pub health_intensity: f32,
}Expand description
Payload emitted to the renderer when a break starts.
Captures everything the overlay needs to render itself without re-querying the backend: duration, whether the user can dismiss or postpone, the hint pool, and the “health intensity” used for the skip-vignette effect.
Fields§
§kind: BreakKind§duration_secs: u64§enforceable: bool§manual_finish: bool§postpone_available: bool§hints: Vec<String>§hint_rotate_seconds: u64§health_intensity: f32Trait Implementations§
Source§impl Clone for BreakEvent
impl Clone for BreakEvent
Source§fn clone(&self) -> BreakEvent
fn clone(&self) -> BreakEvent
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 BreakEvent
impl Debug for BreakEvent
Auto Trait Implementations§
impl Freeze for BreakEvent
impl RefUnwindSafe for BreakEvent
impl Send for BreakEvent
impl Sync for BreakEvent
impl Unpin for BreakEvent
impl UnsafeUnpin for BreakEvent
impl UnwindSafe for BreakEvent
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