pub struct StaticKeyAuthMethodHandler { /* private fields */ }
Expand description

Implementation of AuthMethodHandler that answers challenge requests using a static HeapSecretKey. All other portions of method authentication are handled by another AuthMethodHandler.

Implementations

Creates a new StaticKeyAuthMethodHandler that responds to challenges using a static key. All other requests are passed to the handler.

Creates a new StaticKeyAuthMethodHandler that responds to challenges using a static key. All other requests are passed automatically, meaning that verification is always approvide and info/errors are ignored.

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.