pub trait HandlerExt<Context: Context>: HandlerFor<Context> + Sized {
// Required methods
fn no_cli(self) -> NoCli<Self>;
fn no_display(self) -> NoDisplay<Self>;
fn with_custom_display<C: Context, P>(
self,
display: P,
) -> CustomDisplay<P, Self>
where P: PrintCliResult<C, Params = Self::Params, InheritedParams = Self::InheritedParams, Ok = Self::Ok, Err = Self::Err>;
fn with_custom_display_fn<C: Context, F>(
self,
display: F,
) -> CustomDisplayFn<F, Self, C>
where F: Fn(HandlerArgsFor<C, Self>, Self::Ok) -> Result<(), Self::Err>;
fn with_inherited<Params, InheritedParams, F>(
self,
f: F,
) -> InheritanceHandler<Params, InheritedParams, Self, F>
where F: Fn(Params, InheritedParams) -> Self::InheritedParams;
fn with_call_remote<C>(self) -> RemoteCaller<C, Context, Self>;
fn with_about<M>(self, message: M) -> WithAbout<M, Self>
where M: IntoResettable<StyledStr>;
}
Required Methods§
fn no_cli(self) -> NoCli<Self>
fn no_display(self) -> NoDisplay<Self>
fn with_custom_display<C: Context, P>(
self,
display: P,
) -> CustomDisplay<P, Self>where
P: PrintCliResult<C, Params = Self::Params, InheritedParams = Self::InheritedParams, Ok = Self::Ok, Err = Self::Err>,
fn with_custom_display_fn<C: Context, F>( self, display: F, ) -> CustomDisplayFn<F, Self, C>
fn with_inherited<Params, InheritedParams, F>(
self,
f: F,
) -> InheritanceHandler<Params, InheritedParams, Self, F>where
F: Fn(Params, InheritedParams) -> Self::InheritedParams,
fn with_call_remote<C>(self) -> RemoteCaller<C, Context, Self>
fn with_about<M>(self, message: M) -> WithAbout<M, Self>where
M: IntoResettable<StyledStr>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.