pub enum SignedQueryError {
Stun(StunError),
Refused {
code: u16,
},
BadChallenge,
}Expand description
Why a signed query did not produce a reflexive address (SPEC.md §14.9). Exhaustive: this
crate defines no StunError variant for the credential (SPEC.md §14, “deliberately
deferred”), so every credential-specific failure lives in this type instead.
Variants§
Stun(StunError)
An ordinary STUN-level failure — timeout, I/O, a malformed success, or a response of a type this function does not expect at all.
Refused
The server explicitly declined to answer with this code — a bare 401 from a Required
server, a repeated or foreign-realm 401, a second 438, or any other error code this
exchange does not know how to satisfy.
BadChallenge
The credential exchange cannot proceed: the signer’s own SPKI is not a valid SPEC.md
§14.3.1 shape, so no request would ever be accepted.
Trait Implementations§
Source§impl Clone for SignedQueryError
impl Clone for SignedQueryError
Source§fn clone(&self) -> SignedQueryError
fn clone(&self) -> SignedQueryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignedQueryError
impl Debug for SignedQueryError
Source§impl Display for SignedQueryError
impl Display for SignedQueryError
impl Eq for SignedQueryError
Source§impl Error for SignedQueryError
impl Error for SignedQueryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()