pub enum Script<CommandGeneric: Command> {
Command(CommandGeneric),
Group(Box<CommandGroup<CommandGeneric>>),
Alias(Alias),
}
Expand description
TODO: Choose a better name
Variants§
Implementations§
Source§impl<CommandGeneric: Command> Script<CommandGeneric>
impl<CommandGeneric: Command> Script<CommandGeneric>
pub fn run<'life0, 'life_self, 'async_recursion>(
&'life_self self,
parser: &'life0 impl ScriptParser<CommandGeneric>,
args: VarArgs,
) -> Pin<Box<dyn Future<Output = Result<ExitStatus, ()>> + 'async_recursion>>where
'life0: 'async_recursion,
'life_self: 'async_recursion,
Trait Implementations§
Auto Trait Implementations§
impl<CommandGeneric> Freeze for Script<CommandGeneric>where
CommandGeneric: Freeze,
impl<CommandGeneric> RefUnwindSafe for Script<CommandGeneric>where
CommandGeneric: RefUnwindSafe,
impl<CommandGeneric> Send for Script<CommandGeneric>where
CommandGeneric: Send,
impl<CommandGeneric> Sync for Script<CommandGeneric>where
CommandGeneric: Sync,
impl<CommandGeneric> Unpin for Script<CommandGeneric>where
CommandGeneric: Unpin,
impl<CommandGeneric> UnwindSafe for Script<CommandGeneric>where
CommandGeneric: 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