Skip to main content

HypershellHttpComponents

Struct HypershellHttpComponents 

Source
pub struct HypershellHttpComponents;

Trait Implementations§

Source§

impl<__Name__> DelegateComponent<__Name__> for HypershellHttpComponents
where Self: IsPreset<__Name__>,

Source§

impl<__Name__, __Context__, __Params__> IsProviderFor<__Name__, __Context__, __Params__> for HypershellHttpComponents
where Self: IsPreset<__Name__>, Provider: IsProviderFor<__Name__, __Context__, __Params__>,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<A> Async for A
where A: Send + Sync,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Component, Context, Arg> CommandArgExtractor<Context, Arg> for Component

Source§

fn extract_command_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> <Context as HasCommandArgType>::CommandArg

Source§

impl<Component, Context> CommandArgTypeProvider<Context> for Component

Source§

impl<Component, Context, Args> CommandUpdater<Context, Args> for Component

Source§

fn update_command( context: &Context, _phantom: PhantomData<Args>, command: &mut Command, )

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<Component, Context, SourceError> ErrorRaiser<Context, SourceError> for Component
where Context: HasErrorType, Component: DelegateComponent<ErrorRaiserComponent> + IsProviderFor<ErrorRaiserComponent, Context, SourceError>, <Component as DelegateComponent<ErrorRaiserComponent>>::Delegate: ErrorRaiser<Context, SourceError>,

Source§

fn raise_error(error: SourceError) -> <Context as HasErrorType>::Error

Source§

impl<Component, Context> ErrorTypeProvider<Context> for Component

Source§

impl<Component, Context, Detail> ErrorWrapper<Context, Detail> for Component

Source§

fn wrap_error( error: <Context as HasErrorType>::Error, detail: Detail, ) -> <Context as HasErrorType>::Error

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<Component, Context, Code, Input> Handler<Context, Code, Input> for Component
where Code: Send, Input: Send, Context: HasAsyncErrorType, Component: DelegateComponent<HandlerComponent> + IsProviderFor<HandlerComponent, Context, (Code, Input)>, <Component as DelegateComponent<HandlerComponent>>::Delegate: Handler<Context, Code, Input>,

Source§

type Output = <<Component as DelegateComponent<HandlerComponent>>::Delegate as Handler<Context, Code, Input>>::Output

Source§

fn handle( context: &Context, _tag: PhantomData<Code>, input: Input, ) -> impl Future<Output = Result<<Component as Handler<Context, Code, Input>>::Output, <Context as HasErrorType>::Error>> + Send

Source§

impl<Component, Context> HttpMethodTypeProvider<Context> for Component

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Component, Context, Arg> MethodArgExtractor<Context, Arg> for Component

Source§

fn extract_method_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> <Context as HasHttpMethodType>::HttpMethod

Source§

impl<Component, Context, Args> RequestBuilderUpdater<Context, Args> for Component

Source§

fn update_request_builder( context: &Context, _phantom: PhantomData<Args>, builder: RequestBuilder, ) -> Result<RequestBuilder, <Context as HasErrorType>::Error>

Source§

impl<Component, Context> ReqwestClientGetter<Context> for Component

Source§

impl<Component, Context, Arg> StringArgExtractor<Context, Arg> for Component

Source§

fn extract_string_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> Cow<'_, str>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<Component, Context, Arg> UrlArgExtractor<Context, Arg> for Component

Source§

fn extract_url_arg( context: &Context, _phantom: PhantomData<Arg>, ) -> Result<<Context as HasUrlType>::Url, <Context as HasErrorType>::Error>

Source§

impl<Component, Context> UrlTypeProvider<Context> for Component

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more