#[non_exhaustive]pub enum CommandKind {
Effect,
Query,
Stop,
}Expand description
The kind of a command (section 2.3 of spec/host/02-registry.md).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Effect
Effect. The VM calls the function. Changes its own package’s state. Does not stop.
Query
Query. The VM calls the function. Only reads state and returns a value.
Stop
Stop. The VM stops and the host does the work.
Implementations§
Trait Implementations§
Source§impl Clone for CommandKind
impl Clone for CommandKind
impl Copy for CommandKind
Source§impl Debug for CommandKind
impl Debug for CommandKind
impl Eq for CommandKind
Source§impl PartialEq for CommandKind
impl PartialEq for CommandKind
impl StructuralPartialEq for CommandKind
Auto Trait Implementations§
impl Forget for CommandKind
impl Freeze for CommandKind
impl Move for CommandKind
impl RefUnwindSafe for CommandKind
impl Send for CommandKind
impl Sync for CommandKind
impl Unpin for CommandKind
impl UnsafeUnpin for CommandKind
impl UnwindSafe for CommandKind
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