Struct lexa_framework::extract::CLI
source · pub struct CLI<C>(pub C);Tuple Fields§
§0: CTrait Implementations§
source§impl<S, C> FromRequestParts<S> for CLI<C>where
C: 'static + ApplicationCLIInterface,
S: Send + Sync,
impl<S, C> FromRequestParts<S> for CLI<C>where C: 'static + ApplicationCLIInterface, S: Send + Sync,
§type Rejection = MissingCLIError
type Rejection = MissingCLIError
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<C> RefUnwindSafe for CLI<C>where C: RefUnwindSafe,
impl<C> Send for CLI<C>where C: Send,
impl<C> Sync for CLI<C>where C: Sync,
impl<C> Unpin for CLI<C>where C: Unpin,
impl<C> UnwindSafe for CLI<C>where C: 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
§impl<S, B, T> FromRequest<S, B, ViaParts> for Twhere
B: Send + 'static,
S: Send + Sync,
T: FromRequestParts<S>,
impl<S, B, T> FromRequest<S, B, ViaParts> for Twhere B: Send + 'static, S: Send + Sync, T: FromRequestParts<S>,
§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.