pub struct EmailChallenge { /* private fields */ }Expand description
NDNCERT email challenge handler.
Implementations§
Source§impl EmailChallenge
impl EmailChallenge
pub fn new(sender: Arc<dyn EmailSender>) -> Self
pub fn with_ttl(self, ttl_secs: u32) -> Self
pub fn with_max_tries(self, max_tries: u8) -> Self
Trait Implementations§
Source§impl ChallengeHandler for EmailChallenge
impl ChallengeHandler for EmailChallenge
Source§fn challenge_type(&self) -> &'static str
fn challenge_type(&self) -> &'static str
The challenge type identifier (e.g.
"possession", "token", "pin", "email").Auto Trait Implementations§
impl Freeze for EmailChallenge
impl !RefUnwindSafe for EmailChallenge
impl Send for EmailChallenge
impl Sync for EmailChallenge
impl Unpin for EmailChallenge
impl !UnwindSafe for EmailChallenge
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