pub enum RecordError {
Show 29 variants
TooLarge,
Malformed(String),
NotYetValid,
Expired,
KeyIdMismatch,
LifetimeTooLong,
LifetimeReversed,
KeyPurposeMismatch,
Unsigned,
NotADomainType,
InvalidSubject,
SignatureInvalid,
AlgMismatch,
InvalidCoordinate(String),
InvalidPort,
NotAContentId,
TombstoneOfATombstone,
NoAuthorization,
AuthorizationNotAllowed,
AuthorizationFormUnsupported,
NotOwnNamespace,
NoRealmKey,
OrgDirectoryInvalid(String),
OrgDirectoryWrongRealm,
OrgDirectoryWrongOrg,
DelegationInvalid(String),
DelegationMismatch,
AuthorizationOutlived,
Key(KeyError),
}Expand description
The refusals of a record, named as macula_record names them.
Variants§
TooLarge
A wire form over 256 KiB.
Malformed(String)
A record without exactly the shape, fields and payload of its type, and what.
NotYetValid
Created more than 5 minutes ahead of the verifier’s clock.
Expired
Expired more than 5 minutes before the verifier’s clock.
KeyIdMismatch
A payload that names a signer other than the key id of its key.
LifetimeTooLong
A lifetime over its type’s maximum.
LifetimeReversed
Expires no later than it is created.
KeyPurposeMismatch
A key whose purpose does not fit the type it would sign.
Unsigned
A record with no key, tbs or signature to encode.
NotADomainType
A domain envelope for a built-in type.
InvalidSubject
A domain record’s subject that is empty.
SignatureInvalid
A signature that does not verify.
AlgMismatch
A signed object whose alg names another profile’s algorithm.
InvalidCoordinate(String)
A node record coordinate that is not a number within its range.
InvalidPort
A station endpoint’s QUIC port of 0.
NotAContentId
Not a tag 2 content id of 50 bytes.
TombstoneOfATombstone
A tombstone built to withdraw a tombstone.
NoAuthorization
An org procedure’s advertisement that carries no authorization.
AuthorizationNotAllowed
An authorization on a procedure whose namespace takes none.
AuthorizationFormUnsupported
An authorization in a form macula 12 does not have, a certificate chain among them.
NotOwnNamespace
An advertisement that is not in its advertiser’s own namespace.
NoRealmKey
An authorization checked without a trusted realm key.
OrgDirectoryInvalid(String)
An org directory that does not verify as one, and why.
OrgDirectoryWrongRealm
An org directory the trusted realm key did not sign, or for another realm.
OrgDirectoryWrongOrg
An org directory for another org.
DelegationInvalid(String)
A procedure delegation that does not verify as one, and why.
DelegationMismatch
A delegation the org key did not sign, or for another advertiser.
AuthorizationOutlived
An advertisement that expires after its org directory or delegation.
Key(KeyError)
The key could not sign.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
Source§impl Debug for RecordError
impl Debug for RecordError
Source§impl Display for RecordError
impl Display for RecordError
impl Eq for RecordError
Source§impl Error for RecordError
impl Error for RecordError
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()