Enum scriptplan_core::Script
source · [−]pub enum Script<CommandGeneric: Command> {
Command(CommandGeneric),
Group(Box<CommandGroup<CommandGeneric>>),
Alias(Alias),
}
Expand description
TODO: Choose a better name
Variants
Command(CommandGeneric)
Group(Box<CommandGroup<CommandGeneric>>)
Alias(Alias)
Implementations
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more