pub struct ContextChain<S, R> { /* private fields */ }Implementations§
Source§impl<S, R: CommandResultTrait> ContextChain<S, R>
impl<S, R: CommandResultTrait> ContextChain<S, R>
pub fn new( modifiers: Vec<Rc<CommandContext<S, R>>>, executable: Rc<CommandContext<S, R>>, ) -> Self
pub fn try_flatten(root_context: Rc<CommandContext<S, R>>) -> Option<Self>
pub fn run_modifier( modifier: Rc<CommandContext<S, R>>, source: Arc<S>, result_consumer: &dyn ResultConsumer<S, R>, forked_mode: bool, ) -> Result<Vec<Arc<S>>, CommandSyntaxError>
pub fn run_executable( &self, executable: Rc<CommandContext<S, R>>, source: Arc<S>, result_consumer: &dyn ResultConsumer<S, R>, forked_mode: bool, ) -> Result<R, CommandSyntaxError>
pub fn execute_all( &self, source: Arc<S>, result_consumer: &dyn ResultConsumer<S, R>, ) -> Result<R, CommandSyntaxError>
pub fn stage(&self) -> Stage
pub fn top_context(&self) -> Rc<CommandContext<S, R>>
pub fn next_stage(&mut self) -> Option<Rc<ContextChain<S, R>>>
Auto Trait Implementations§
impl<S, R> Freeze for ContextChain<S, R>
impl<S, R> !RefUnwindSafe for ContextChain<S, R>
impl<S, R> !Send for ContextChain<S, R>
impl<S, R> !Sync for ContextChain<S, R>
impl<S, R> Unpin for ContextChain<S, R>
impl<S, R> UnsafeUnpin for ContextChain<S, R>
impl<S, R> !UnwindSafe for ContextChain<S, R>
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