pub enum ClientAuthError {
ReplicationKeyRefused,
UnknownKey,
InvalidKey(SignatureError),
BadSignature(SignatureError),
}Expand description
Why the client listener refused a challenge response.
Exhaustive, so a caller matching on it is told by the compiler when a refusal reason is added (a breaking change, called out in the changelog).
Variants§
ReplicationKeyRefused
The key is listed as replication, which authorizes streaming
between nodes and may not open a client connection (see
KeyRole::client).
UnknownKey
The key is not in the authorized keys file.
InvalidKey(SignatureError)
The listed bytes are not a valid Ed25519 public key.
BadSignature(SignatureError)
The signature over the nonce does not verify.
Trait Implementations§
Source§impl Debug for ClientAuthError
impl Debug for ClientAuthError
Source§impl Display for ClientAuthError
impl Display for ClientAuthError
Source§impl Error for ClientAuthError
impl Error for ClientAuthError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ClientAuthError
impl !UnwindSafe for ClientAuthError
impl Freeze for ClientAuthError
impl Send for ClientAuthError
impl Sync for ClientAuthError
impl Unpin for ClientAuthError
impl UnsafeUnpin for ClientAuthError
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