pub struct PromptAuthMethodHandler<T, U> { /* private fields */ }
Expand description

Blocking implementation of AuthMethodHandler that uses prompts to communicate challenge & verification requests, receiving responses to relay back.

Implementations

Trait Implementations

Callback when a challenge is received, returning answers to the given questions.
Callback when a verification request is received, returning true if approvided or false if unapproved. Read more
Callback when information is received. To fail, return an error from this function.
Callback when an error is received. Regardless of the result returned, this will terminate the authenticator. In the situation where a custom error would be preferred, have this callback return an error. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.