pub struct SimpleFnHandler<F, T, R = HandlerResult<T>>where
T: Serialize,{ /* private fields */ }Implementations§
Source§impl<F, T, R> SimpleFnHandler<F, T, R>
impl<F, T, R> SimpleFnHandler<F, T, R>
Trait Implementations§
Source§impl<F, T, R> Handler for SimpleFnHandler<F, T, R>
impl<F, T, R> Handler for SimpleFnHandler<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 SimpleFnHandler<F, T, R>
impl<F, T, R> RefUnwindSafe for SimpleFnHandler<F, T, R>
impl<F, T, R> Send for SimpleFnHandler<F, T, R>
impl<F, T, R> Sync for SimpleFnHandler<F, T, R>
impl<F, T, R> Unpin for SimpleFnHandler<F, T, R>
impl<F, T, R> UnsafeUnpin for SimpleFnHandler<F, T, R>
impl<F, T, R> UnwindSafe for SimpleFnHandler<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