Enum makiko::AuthPasswordResult
source · pub enum AuthPasswordResult {
Success,
ChangePassword(AuthPasswordPrompt),
Failure(AuthFailure),
}
Expand description
Result of the “password” authentication method.
Variants§
Success
The authentication was successful.
If you requested a password change, the password has been changed.
ChangePassword(AuthPasswordPrompt)
The server asks you to change your password.
The SSH protocol contains a mechanism to change the user password, but nobody seems to implement it (neither servers nor clients), so you will probably never encounter this in the wild.
Failure(AuthFailure)
The authentication was rejected.
If you requested a password change and AuthFailure::partial_success
is true,
then the password has been changed, but more authentications are needed. Otherwise, if
partial_success
is false, the password has not been changed.
Implementations§
source§impl AuthPasswordResult
impl AuthPasswordResult
sourcepub fn success_or_error(&self) -> Result<()>
pub fn success_or_error(&self) -> Result<()>
Returns Ok
if this is a success, Err
otherwise.
Trait Implementations§
source§impl Clone for AuthPasswordResult
impl Clone for AuthPasswordResult
source§fn clone(&self) -> AuthPasswordResult
fn clone(&self) -> AuthPasswordResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for AuthPasswordResult
impl Send for AuthPasswordResult
impl Sync for AuthPasswordResult
impl Unpin for AuthPasswordResult
impl UnwindSafe for AuthPasswordResult
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