pub struct View<'a> {
pub mode: Mode,
pub question: Option<&'a str>,
pub held_label: Option<&'a str>,
pub settle: &'a Settle,
pub listening: bool,
pub elapsed: &'a str,
pub cleanup: &'a str,
pub show_raw: bool,
pub paused: bool,
pub confirm_cancel: bool,
}Expand description
Everything the screen needs, with no I/O. The live session rebuilds this each frame from the Settle machine + clock + listening flag.
Fields§
§mode: Mode§question: Option<&'a str>§held_label: Option<&'a str>§settle: &'a Settle§listening: bool§elapsed: &'a str§cleanup: &'a str§show_raw: bool§paused: bool§confirm_cancel: boolAuto Trait Implementations§
impl<'a> Freeze for View<'a>
impl<'a> RefUnwindSafe for View<'a>
impl<'a> Send for View<'a>
impl<'a> Sync for View<'a>
impl<'a> Unpin for View<'a>
impl<'a> UnsafeUnpin for View<'a>
impl<'a> UnwindSafe for View<'a>
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