pub enum AuthError {
UnknownSession,
NotPaired,
Expired,
Replayed,
BadMac,
}Expand description
Why a control request was refused. The code is a stable,
language-neutral string the page localizes.
Variants§
UnknownSession
No session with that id exists; the client must pair first.
NotPaired
The session exists but has not completed pairing.
Expired
The session has expired; the client must pair again.
Replayed
The counter is not greater than the last accepted one (a replay or reorder).
BadMac
The supplied MAC does not match; the client does not hold the session key.
Implementations§
Trait Implementations§
impl Copy for AuthError
impl Eq for AuthError
impl StructuralPartialEq for AuthError
Auto Trait Implementations§
impl Freeze for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl UnwindSafe for AuthError
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