Skip to main content

TwoFactorExt

Trait TwoFactorExt 

Source
pub trait TwoFactorExt: AuthInstance + Sized {
    // Provided method
    fn two_factor<I>(&self) -> TwoFactorApi<'_, Self>
       where Self: HasPlugin<TwoFactor, I> { ... }
}
Expand description

auth.two_factor(): the server API. Only compiles on an Auth with TwoFactor registered.

Provided Methods§

Source

fn two_factor<I>(&self) -> TwoFactorApi<'_, Self>
where Self: HasPlugin<TwoFactor, I>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§