pub enum Call {
SetView(String),
Invalidate,
Write {
name: String,
value: String,
},
Dispatch {
name: String,
value: String,
},
Open {
name: String,
value: String,
},
Close {
name: String,
},
}Expand description
One request from view code, in the order the runtime received it.
Variants§
SetView(String)
Replace the view. The payload is a JSON view spec.
Invalidate
Repaint without a tree change, for a caret blink or a spinner.
Write
A value the host should observe, such as a breadcrumb or a metric.
Dispatch
A user action for the host reducer, which owns every state change.
Open
Open a host-owned view: command palette, file picker, diff.
Close
Close the host-owned view with this name.
Trait Implementations§
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl Freeze for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
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