pub struct DynAuthenticator<'dynosaur_struct> { /* private fields */ }Expand description
Dyn-compatible wrapper for Authenticator.
Implementations§
Source§impl<'dynosaur_struct> DynAuthenticator<'dynosaur_struct>
impl<'dynosaur_struct> DynAuthenticator<'dynosaur_struct>
Sourcepub fn new_box(
value: impl Authenticator + 'dynosaur_struct,
) -> _Box<DynAuthenticator<'dynosaur_struct>>
pub fn new_box( value: impl Authenticator + 'dynosaur_struct, ) -> _Box<DynAuthenticator<'dynosaur_struct>>
Create Box<DynAuthenticator> from a value implementing Authenticator.
Sourcepub fn new_arc(
value: impl Authenticator + 'dynosaur_struct,
) -> _Arc<DynAuthenticator<'dynosaur_struct>> ⓘ
pub fn new_arc( value: impl Authenticator + 'dynosaur_struct, ) -> _Arc<DynAuthenticator<'dynosaur_struct>> ⓘ
Create Arc<DynAuthenticator> from a value implementing Authenticator.
Sourcepub fn new_rc(
value: impl Authenticator + 'dynosaur_struct,
) -> _Rc<DynAuthenticator<'dynosaur_struct>>
pub fn new_rc( value: impl Authenticator + 'dynosaur_struct, ) -> _Rc<DynAuthenticator<'dynosaur_struct>>
Create Rc<DynAuthenticator> from a value implementing Authenticator.
Sourcepub const fn from_box(
value: _Box<impl Authenticator + 'dynosaur_struct>,
) -> _Box<DynAuthenticator<'dynosaur_struct>>
pub const fn from_box( value: _Box<impl Authenticator + 'dynosaur_struct>, ) -> _Box<DynAuthenticator<'dynosaur_struct>>
Convert Box<impl Authenticator> to Box<DynAuthenticator>.
Sourcepub const fn from_arc(
value: _Arc<impl Authenticator + 'dynosaur_struct>,
) -> _Arc<DynAuthenticator<'dynosaur_struct>> ⓘ
pub const fn from_arc( value: _Arc<impl Authenticator + 'dynosaur_struct>, ) -> _Arc<DynAuthenticator<'dynosaur_struct>> ⓘ
Convert Arc<impl Authenticator> to Arc<DynAuthenticator>.
Sourcepub const fn from_rc(
value: _Rc<impl Authenticator + 'dynosaur_struct>,
) -> _Rc<DynAuthenticator<'dynosaur_struct>>
pub const fn from_rc( value: _Rc<impl Authenticator + 'dynosaur_struct>, ) -> _Rc<DynAuthenticator<'dynosaur_struct>>
Convert Rc<impl Authenticator> to Rc<DynAuthenticator>.
Sourcepub const fn from_ref(
value: &(impl Authenticator + 'dynosaur_struct),
) -> &DynAuthenticator<'dynosaur_struct>
pub const fn from_ref( value: &(impl Authenticator + 'dynosaur_struct), ) -> &DynAuthenticator<'dynosaur_struct>
Convert &impl Authenticator to &DynAuthenticator.
Sourcepub const fn from_mut(
value: &mut (impl Authenticator + 'dynosaur_struct),
) -> &mut DynAuthenticator<'dynosaur_struct>
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>
impl<'dynosaur_struct> Authenticator for DynAuthenticator<'dynosaur_struct>
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> 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