enum Msg {
Command(String, Value),
Query(String, Value, Sender<Value>),
}Expand description
Messages to the engine thread, applied in the order they arrive.
Variants§
Command(String, Value)
A UI command: its name and its JSON arguments.
Query(String, Value, Sender<Value>)
A UI query: its name, its JSON arguments and the channel for its answer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
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