pub enum InternalCommand {
UsingTempdir,
UsingDir(ShellBit, bool),
ChangeDir(ShellBit),
Set(String, ShellBit),
}Variants§
Implementations§
Source§impl InternalCommand
impl InternalCommand
pub fn run( &self, context: &mut ScriptRunContext, ) -> Result<Option<Box<dyn FnOnce(&mut ScriptRunContext) -> Result<(), ScriptRunError> + Send + Sync>>, ScriptRunError>
Trait Implementations§
Source§impl Clone for InternalCommand
impl Clone for InternalCommand
Source§fn clone(&self) -> InternalCommand
fn clone(&self) -> InternalCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InternalCommand
impl Debug for InternalCommand
Auto Trait Implementations§
impl Freeze for InternalCommand
impl RefUnwindSafe for InternalCommand
impl Send for InternalCommand
impl Sync for InternalCommand
impl Unpin for InternalCommand
impl UnwindSafe for InternalCommand
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