pub enum MoqlAdmissionError {
Show 17 variants
Carrier(String),
Timeout,
Malformed(String),
NotAcceptedIdentity(String),
UnknownIdentity(String),
Expired {
did: String,
expired_at_unix_ms: i64,
now_unix_ms: i64,
},
KeyNotCurrent(String),
StateAdvanced(String),
BadSignature,
Replay,
TenantUnresolved(String),
InvalidTenant(String),
ServerIdentityUnavailable,
ServerIdentityMismatch,
ServerIdentityNotCurrent,
WrongServer,
ServerUnconfirmed,
}Expand description
Why an admission attempt was rejected. Each rejection class named by the #1027 contract maps to a distinct variant so negative evidence can name the exact failing check.
Variants§
Carrier(String)
Carrier-level I/O failure during the exchange.
Timeout
The exchange did not complete within the admission timeout.
Malformed(String)
A frame failed to parse (bad version, truncation, oversize, bad UTF-8).
NotAcceptedIdentity(String)
The presented DID is not a did:at9p accepted-state identity. A NodeId
or a did:key of it lands here: carrier reach is never identity.
UnknownIdentity(String)
The daemon-owned authority holds no accepted state for this DID.
Expired
The accepted state exists but lapsed before the admission decision.
Fields
KeyNotCurrent(String)
The presented Ed25519 key is not among the accepted current subject keys — e.g. it was rotated out by a state advance.
StateAdvanced(String)
The accepted state advanced (epoch/head changed) while the handshake was in flight; the proof was made against a superseded currentness claim.
BadSignature
Ed25519 or ML-DSA-65 layer failed to verify, or a layer was stripped.
Replay
The exact transcript digest was already consumed by a prior admission.
TenantUnresolved(String)
The subject verified, but the operator resolver maps it to no tenant.
InvalidTenant(String)
The resolver returned a tenant that is not one MoQ path segment.
An admission-enabled server did not have the local private identity required to prove possession to the client.
ServerIdentityMismatch
The server’s configured private keys do not match its public, resolver-verified accepted-state witness.
ServerIdentityNotCurrent
The local server witness expired, advanced, or lost its published key pair after startup. It cannot be used to confirm a new or live tunnel.
WrongServer
The remote server’s challenge did not carry precisely the witness that the signed StreamInfo authenticated for this dial.
ServerUnconfirmed
The server did not provide a valid hybrid signature over the completed admission exchange. The client must never proceed to MoQ in this case.
Trait Implementations§
Source§impl Debug for MoqlAdmissionError
impl Debug for MoqlAdmissionError
Source§impl Display for MoqlAdmissionError
impl Display for MoqlAdmissionError
Source§impl Error for MoqlAdmissionError
impl Error for MoqlAdmissionError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for MoqlAdmissionError
impl RefUnwindSafe for MoqlAdmissionError
impl Send for MoqlAdmissionError
impl Sync for MoqlAdmissionError
impl Unpin for MoqlAdmissionError
impl UnsafeUnpin for MoqlAdmissionError
impl UnwindSafe for MoqlAdmissionError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more