pub enum Command {
Node {
target: String,
action: String,
args: Json,
},
App {
name: String,
args: Json,
},
}Expand description
组件与外界之间唯一的\「意图\「通道。框架只搬运、不解释语义。
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Commandwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Json>: Freeze,
PhantomData<(String, Json)>: Freeze,
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Commandwhere
RawVecInner: Send,
impl Sync for Commandwhere
RawVecInner: Sync,
impl Unpin for Command
impl UnsafeUnpin for Commandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Json>: UnsafeUnpin,
PhantomData<(String, Json)>: UnsafeUnpin,
impl UnwindSafe for Commandwhere
RawVecInner: UnwindSafe,
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