pub struct FnHandler<F, T, R = HandlerResult<T>>where
T: Serialize,{ /* private fields */ }Implementations§
Trait Implementations§
Source§impl<F, T, R> Handler for FnHandler<F, T, R>
impl<F, T, R> Handler for FnHandler<F, T, R>
type Output = T
fn handle( &mut self, matches: &ArgMatches, ctx: &CommandContext, ) -> HandlerResult<T>
fn expected_args(&self) -> Vec<ExpectedArg>
Auto Trait Implementations§
impl<F, T, R> Freeze for FnHandler<F, T, R>
impl<F, T, R> RefUnwindSafe for FnHandler<F, T, R>
impl<F, T, R> Send for FnHandler<F, T, R>
impl<F, T, R> Sync for FnHandler<F, T, R>
impl<F, T, R> Unpin for FnHandler<F, T, R>
impl<F, T, R> UnsafeUnpin for FnHandler<F, T, R>
impl<F, T, R> UnwindSafe for FnHandler<F, T, 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