pub enum Effect {
RunCommand(String),
}Expand description
Side work as data (FC-8). The console does one thing it cannot do itself —
run a submitted command — so it hands it back as an Effect::RunCommand
for the host to execute (the host then streams output back via
Msg::PushLine). No I/O is performed inside Console::update.
Variants§
Trait Implementations§
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
Blanket Implementations§
impl<T> Allocation for T
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