pub enum FrameError {
Show 23 variants
TooLarge(usize),
Malformed,
Payload(String),
BreaksDecodingRule(String),
ProofsOutOfBound,
KeyIdMismatch,
RequestMismatch,
NotTheTarget,
NotTheConnection,
Unsignable,
TextTooLong(String),
InvalidText(String),
RelayCodeOutsideItsSet,
OutOfRange(String),
SealedShape,
NotAllowed(String),
SeqMismatch,
StreamEnded,
NeighbourSigned,
NotYetValid(i64),
Expired(i64),
SignatureInvalid,
Key(KeyError),
}Expand description
The refusals of a frame, named as macula_frame names them.
Variants§
TooLarge(usize)
An encoding longer than MAX_FRAME_BYTES, or a header claiming one.
Malformed
A frame, or the signed object it carries, without exactly the shape and fields of its type.
Payload(String)
A payload the decoding rule would refuse where it arrives, and where.
BreaksDecodingRule(String)
A whole frame the decoding rule would refuse, and where.
ProofsOutOfBound
A request’s delegation chain proofs outside their bound.
KeyIdMismatch
A signed object whose signer is not the key it verified with.
RequestMismatch
A reply, relay error or stream frame naming another request.
NotTheTarget
A reply, or a provider’s first stream frame, from a node other than its request’s target.
NotTheConnection
A relay error from another station than the connection’s.
Unsignable
A key that cannot sign this frame.
TextTooLong(String)
A text longer than its bound, naming the field.
InvalidText(String)
A text that is not valid UTF-8, naming the field.
RelayCodeOutsideItsSet
A relay error code outside its closed set.
OutOfRange(String)
A field outside its range, and which.
SealedShape
A sealed payload built with another shape than its frame’s: a request’s without a kem_ct of a profile’s size or with a nonce, a reply’s or a provider stream frame’s without a 12-byte nonce or with a kem_ct, or a caller stream frame’s with either.
NotAllowed(String)
A stream frame its side does not send, and which.
SeqMismatch
A stream frame out of its side’s order.
StreamEnded
A stream frame after its side’s STREAM_END.
NeighbourSigned
A frame given to sign that already carries a neighbour signature.
NotYetValid(i64)
A publication published too far ahead, by how many milliseconds.
Expired(i64)
A publication past its expiry, by how many milliseconds.
SignatureInvalid
A signed object’s signature that does not verify.
Key(KeyError)
A key that could not sign.
Trait Implementations§
Source§impl Clone for FrameError
impl Clone for FrameError
Source§impl Debug for FrameError
impl Debug for FrameError
Source§impl Display for FrameError
impl Display for FrameError
impl Eq for FrameError
Source§impl Error for FrameError
impl Error for FrameError
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()