pub struct CoreCommand {
pub surface: RuntimeSurface,
pub action: CoreAction,
pub snapshot: BrowserSnapshot,
}Expand description
A command sent from JavaScript to the Rust core.
This is the only entry point into the core’s state machine. JavaScript adapters construct this from user actions and browser state.
Fields§
§surface: RuntimeSurfaceWhich surface sent this command.
action: CoreActionWhat action to perform.
snapshot: BrowserSnapshotCurrent browser state snapshot.
Trait Implementations§
Source§impl Clone for CoreCommand
impl Clone for CoreCommand
Source§fn clone(&self) -> CoreCommand
fn clone(&self) -> CoreCommand
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 CoreCommand
impl Debug for CoreCommand
Source§impl<'de> Deserialize<'de> for CoreCommand
impl<'de> Deserialize<'de> for CoreCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoreCommand
impl RefUnwindSafe for CoreCommand
impl Send for CoreCommand
impl Sync for CoreCommand
impl Unpin for CoreCommand
impl UnsafeUnpin for CoreCommand
impl UnwindSafe for CoreCommand
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