pub struct CustomDisplay<P, H> { /* private fields */ }
Trait Implementations§
Source§impl<Context, P, H> CliBindings<Context> for CustomDisplay<P, H>where
Context: Context,
Self: HandlerTypes + PrintCliResult<Context>,
Self::Params: CommandFactory + FromArgMatches + Serialize,
impl<Context, P, H> CliBindings<Context> for CustomDisplay<P, H>where
Context: Context,
Self: HandlerTypes + PrintCliResult<Context>,
Self::Params: CommandFactory + FromArgMatches + Serialize,
Source§impl<P: Clone, H: Clone> Clone for CustomDisplay<P, H>
impl<P: Clone, H: Clone> Clone for CustomDisplay<P, H>
Source§fn clone(&self) -> CustomDisplay<P, H>
fn clone(&self) -> CustomDisplay<P, H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Context, P, H> HandlerFor<Context> for CustomDisplay<P, H>
impl<Context, P, H> HandlerFor<Context> for CustomDisplay<P, H>
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
Source§impl<P, H> HandlerTypes for CustomDisplay<P, H>where
H: HandlerTypes,
impl<P, H> HandlerTypes for CustomDisplay<P, H>where
H: HandlerTypes,
type Params = <H as HandlerTypes>::Params
type InheritedParams = <H as HandlerTypes>::InheritedParams
type Ok = <H as HandlerTypes>::Ok
type Err = <H as HandlerTypes>::Err
Source§impl<Context, P, H> PrintCliResult<Context> for CustomDisplay<P, H>where
Context: Context,
H: HandlerTypes,
P: PrintCliResult<Context, Params = H::Params, InheritedParams = H::InheritedParams, Ok = H::Ok, Err = H::Err> + Send + Sync + Clone + 'static,
impl<Context, P, H> PrintCliResult<Context> for CustomDisplay<P, H>where
Context: Context,
H: HandlerTypes,
P: PrintCliResult<Context, Params = H::Params, InheritedParams = H::InheritedParams, Ok = H::Ok, Err = H::Err> + Send + Sync + Clone + 'static,
Auto Trait Implementations§
impl<P, H> Freeze for CustomDisplay<P, H>
impl<P, H> RefUnwindSafe for CustomDisplay<P, H>where
P: RefUnwindSafe,
H: RefUnwindSafe,
impl<P, H> Send for CustomDisplay<P, H>
impl<P, H> Sync for CustomDisplay<P, H>
impl<P, H> Unpin for CustomDisplay<P, H>
impl<P, H> UnwindSafe for CustomDisplay<P, H>where
P: UnwindSafe,
H: 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