pub struct LoadCommand { /* private fields */ }Expand description
The LOAD command.
Implementations§
Source§impl LoadCommand
impl LoadCommand
Sourcepub fn new(
console: Rc<RefCell<dyn Console>>,
storage: Rc<RefCell<Storage>>,
program: Rc<RefCell<dyn Program>>,
actions: Rc<RefCell<Vec<MachineAction>>>,
) -> Rc<Self>
pub fn new( console: Rc<RefCell<dyn Console>>, storage: Rc<RefCell<Storage>>, program: Rc<RefCell<dyn Program>>, actions: Rc<RefCell<Vec<MachineAction>>>, ) -> Rc<Self>
Creates a new LOAD command that loads a program from storage into program and that
uses console to communicate unsaved changes.
Trait Implementations§
Source§impl Callable for LoadCommand
impl Callable for LoadCommand
Source§fn async_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: Scope<'life1>,
) -> Pin<Box<dyn Future<Output = CallResult<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn async_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: Scope<'life1>,
) -> Pin<Box<dyn Future<Output = CallResult<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes the callable if it is asynchronous.
Auto Trait Implementations§
impl Freeze for LoadCommand
impl !RefUnwindSafe for LoadCommand
impl !Send for LoadCommand
impl !Sync for LoadCommand
impl Unpin for LoadCommand
impl UnsafeUnpin for LoadCommand
impl !UnwindSafe for LoadCommand
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