Skip to main content

DynAuthenticator

Struct DynAuthenticator 

Source
pub struct DynAuthenticator<'dynosaur_struct> { /* private fields */ }
Expand description

Dyn-compatible wrapper for Authenticator.

Implementations§

Source§

impl<'dynosaur_struct> DynAuthenticator<'dynosaur_struct>

Source

pub fn new_box( value: impl Authenticator + 'dynosaur_struct, ) -> _Box<DynAuthenticator<'dynosaur_struct>>

Create Box<DynAuthenticator> from a value implementing Authenticator.

Source

pub fn new_arc( value: impl Authenticator + 'dynosaur_struct, ) -> _Arc<DynAuthenticator<'dynosaur_struct>> ⓘ

Create Arc<DynAuthenticator> from a value implementing Authenticator.

Source

pub fn new_rc( value: impl Authenticator + 'dynosaur_struct, ) -> _Rc<DynAuthenticator<'dynosaur_struct>>

Create Rc<DynAuthenticator> from a value implementing Authenticator.

Source

pub const fn from_box( value: _Box<impl Authenticator + 'dynosaur_struct>, ) -> _Box<DynAuthenticator<'dynosaur_struct>>

Convert Box<impl Authenticator> to Box<DynAuthenticator>.

Source

pub const fn from_arc( value: _Arc<impl Authenticator + 'dynosaur_struct>, ) -> _Arc<DynAuthenticator<'dynosaur_struct>> ⓘ

Convert Arc<impl Authenticator> to Arc<DynAuthenticator>.

Source

pub const fn from_rc( value: _Rc<impl Authenticator + 'dynosaur_struct>, ) -> _Rc<DynAuthenticator<'dynosaur_struct>>

Convert Rc<impl Authenticator> to Rc<DynAuthenticator>.

Source

pub const fn from_ref( value: &(impl Authenticator + 'dynosaur_struct), ) -> &DynAuthenticator<'dynosaur_struct>

Convert &impl Authenticator to &DynAuthenticator.

Source

pub const fn from_mut( value: &mut (impl Authenticator + 'dynosaur_struct), ) -> &mut DynAuthenticator<'dynosaur_struct>

Convert &mut impl Authenticator to &mut DynAuthenticator.

Trait Implementations§

Source§

impl<'dynosaur_struct> Authenticator for DynAuthenticator<'dynosaur_struct>

Source§

fn sign( &self, parts: &mut RequestParts, attempt: u32, ) -> impl Future<Output = Result<(), ApiError>> + Send

Sign parts, adding headers or query parameters. Runs on every attempt, so a timestamp in the signature is fresh each time. Read more

Auto Trait Implementations§

§

impl<'dynosaur_struct> !Freeze for DynAuthenticator<'dynosaur_struct>

§

impl<'dynosaur_struct> !RefUnwindSafe for DynAuthenticator<'dynosaur_struct>

§

impl<'dynosaur_struct> !Sized for DynAuthenticator<'dynosaur_struct>

§

impl<'dynosaur_struct> !Unpin for DynAuthenticator<'dynosaur_struct>

§

impl<'dynosaur_struct> !UnsafeUnpin for DynAuthenticator<'dynosaur_struct>

§

impl<'dynosaur_struct> !UnwindSafe for DynAuthenticator<'dynosaur_struct>

§

impl<'dynosaur_struct> Send for DynAuthenticator<'dynosaur_struct>

§

impl<'dynosaur_struct> Sync for DynAuthenticator<'dynosaur_struct>

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<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<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more