pub struct ErrorInto<E, Error>(/* private fields */);Expand description
A simple wrapper around an Endpoint to change it’s error type into anything Into-able.
Implementations§
Trait Implementations§
Source§impl<E, Error, W> Endpoint<W> for ErrorInto<E, Error>
impl<E, Error, W> Endpoint<W> for ErrorInto<E, Error>
Source§fn registrar(&self) -> Option<&dyn Registrar>
fn registrar(&self) -> Option<&dyn Registrar>
A registrar if this endpoint can access one. Read more
An authorizer if this endpoint can access one. Read more
Source§fn issuer_mut(&mut self) -> Option<&mut dyn Issuer>
fn issuer_mut(&mut self) -> Option<&mut dyn Issuer>
An issuer if this endpoint can access one. Read more
Source§fn owner_solicitor(&mut self) -> Option<&mut dyn OwnerSolicitor<W>>
fn owner_solicitor(&mut self) -> Option<&mut dyn OwnerSolicitor<W>>
Return the system that checks owner consent. Read more
Source§fn scopes(&mut self) -> Option<&mut dyn Scopes<W>>
fn scopes(&mut self) -> Option<&mut dyn Scopes<W>>
Determine the required scopes for a request. Read more
Source§fn response(
&mut self,
request: &mut W,
kind: Template<'_>,
) -> Result<W::Response, Self::Error>
fn response( &mut self, request: &mut W, kind: Template<'_>, ) -> Result<W::Response, Self::Error>
Generate a prototype response. Read more
Source§fn error(&mut self, err: OAuthError) -> Self::Error
fn error(&mut self, err: OAuthError) -> Self::Error
Wrap an error.
Auto Trait Implementations§
impl<E, Error> Freeze for ErrorInto<E, Error>where
E: Freeze,
impl<E, Error> RefUnwindSafe for ErrorInto<E, Error>where
E: RefUnwindSafe,
Error: RefUnwindSafe,
impl<E, Error> Send for ErrorInto<E, Error>
impl<E, Error> Sync for ErrorInto<E, Error>
impl<E, Error> Unpin for ErrorInto<E, Error>
impl<E, Error> UnwindSafe for ErrorInto<E, Error>where
E: UnwindSafe,
Error: 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