pub struct ParentHandler<Context, Params = Empty, InheritedParams = Empty> { /* private fields */ }
Implementations§
Source§impl<Context, Params, InheritedParams> ParentHandler<Context, Params, InheritedParams>
impl<Context, Params, InheritedParams> ParentHandler<Context, Params, InheritedParams>
Source§impl<Context: Context, Params, InheritedParams> ParentHandler<Context, Params, InheritedParams>
impl<Context: Context, Params, InheritedParams> ParentHandler<Context, Params, InheritedParams>
pub fn subcommand<C: Context, H>(self, name: &'static str, handler: H) -> Self
pub fn root_handler<C: Context, H>(self, handler: H) -> Selfwhere
WithContext<C, H>: Handler<InheritedParams>,
<WithContext<C, H> as Handler<InheritedParams>>::H: HandlerTypes<Params = Params>,
Trait Implementations§
Source§impl<Context, Params, InheritedParams> CliBindings<Context> for ParentHandler<Context, Params, InheritedParams>where
Context: Context,
Params: FromArgMatches + CommandFactory + Serialize + Send + Sync + 'static,
InheritedParams: Send + Sync + 'static,
impl<Context, Params, InheritedParams> CliBindings<Context> for ParentHandler<Context, Params, InheritedParams>where
Context: Context,
Params: FromArgMatches + CommandFactory + Serialize + Send + Sync + 'static,
InheritedParams: Send + Sync + 'static,
Source§impl<Context, Params, InheritedParams> Clone for ParentHandler<Context, Params, InheritedParams>
impl<Context, Params, InheritedParams> Clone for ParentHandler<Context, Params, InheritedParams>
Source§impl<Context, Params, InheritedParams> Debug for ParentHandler<Context, Params, InheritedParams>
impl<Context, Params, InheritedParams> Debug for ParentHandler<Context, Params, InheritedParams>
Source§impl<Context, Params, InheritedParams> HandlerFor<Context> for ParentHandler<Context, Params, InheritedParams>
impl<Context, Params, InheritedParams> HandlerFor<Context> for ParentHandler<Context, Params, InheritedParams>
fn handle_sync( &self, _: HandlerArgsFor<Context, Self>, ) -> Result<Self::Ok, Self::Err>
async fn handle_async( &self, __arg1: HandlerArgsFor<Context, Self>, ) -> Result<Self::Ok, Self::Err>
fn metadata( &self, method: VecDeque<&'static str>, ) -> OrdMap<&'static str, Value>
fn method_from_dots(&self, method: &str) -> Option<VecDeque<&'static str>>
fn handle_async_with_sync<'a>( &'a self, handle_args: HandlerArgsFor<Context, Self>, ) -> impl Future<Output = Result<Self::Ok, Self::Err>> + Send + 'a
fn handle_async_with_sync_blocking<'a>( &'a self, handle_args: HandlerArgsFor<Context, Self>, ) -> impl Future<Output = Result<Self::Ok, Self::Err>> + Send + 'a
Auto Trait Implementations§
impl<Context, Params, InheritedParams> Freeze for ParentHandler<Context, Params, InheritedParams>
impl<Context, Params = Empty, InheritedParams = Empty> !RefUnwindSafe for ParentHandler<Context, Params, InheritedParams>
impl<Context, Params, InheritedParams> Send for ParentHandler<Context, Params, InheritedParams>
impl<Context, Params, InheritedParams> Sync for ParentHandler<Context, Params, InheritedParams>
impl<Context, Params, InheritedParams> Unpin for ParentHandler<Context, Params, InheritedParams>where
Context: Unpin,
impl<Context, Params = Empty, InheritedParams = Empty> !UnwindSafe for ParentHandler<Context, Params, InheritedParams>
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