pub enum Event {
State(Value),
Log {
level: &'static str,
text: String,
},
}Expand description
What the engine tells the UI, through the sink given to spawn.
The sink is called on the engine thread for Event::State, and on
whatever thread logged for Event::Log, so it must be cheap and must not
call Engine::query and wait.
Variants§
State(Value)
The whole view state, sent only when it differs from the last one.
Log
One log line at or above INFO.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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