pub enum Auth {
Reject,
Accept,
UnsupportedMethod,
Partial {
name: Cow<'static, str>,
instructions: Cow<'static, str>,
prompts: Cow<'static, [(Cow<'static, str>, bool)]>,
},
}
Expand description
An authentication result, in a challenge-response authentication.
Variants
Reject
Reject the authentication request.
Accept
Accept the authentication request.
UnsupportedMethod
Method was not accepted, but no other check was performed.
Partial
Fields
Partially accept the challenge-response authentication request, providing more instructions for the client to follow.
Trait Implementations
impl Eq for Auth
impl StructuralEq for Auth
impl StructuralPartialEq for Auth
Auto Trait Implementations
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnwindSafe for Auth
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more