pub enum SlotError {
Show 19 variants
ZeroGeneration,
UnpublishedSequence,
StaleGeneration {
expected: u64,
actual: u64,
},
SequenceWrap,
WrongSlot {
expected: u32,
actual: u32,
},
UnexpectedFirstSequence {
expected: u64,
actual: u64,
},
UnexpectedNextSequence {
expected: u64,
actual: u64,
},
MissingAcknowledgement {
sequence: u64,
},
WrongAcknowledgementTarget,
WrongAcknowledgementOwner,
WrongAcknowledgementSlot,
WrongAcknowledgementCell,
StaleAcknowledgementGeneration,
LaggingAcknowledgement {
expected: u64,
actual: u64,
},
FutureAcknowledgement {
expected: u64,
actual: u64,
},
StaleSequence {
expected: u64,
actual: u64,
},
PayloadTooLarge {
length: u32,
capacity: u32,
},
ChangedPayloadLength {
expected: u32,
actual: u32,
},
WrongObservationRole,
}Expand description
Bounded slot validation failures.
Variants§
ZeroGeneration
Generation zero is reserved.
UnpublishedSequence
Sequence zero is unpublished.
StaleGeneration
Bound generation differs from shared metadata.
Fields
SequenceWrap
Sequence would wrap.
WrongSlot
Sequence points at a different ring slot.
Fields
UnexpectedFirstSequence
First use of a slot had a noncanonical sequence.
UnexpectedNextSequence
Reuse was not exactly one ring rotation later.
Fields
MissingAcknowledgement
Reuse lacked an acknowledgement.
WrongAcknowledgementTarget
Acknowledgement targets another producer role.
WrongAcknowledgementOwner
Acknowledgement came from another routed owner.
WrongAcknowledgementSlot
Acknowledgement belongs to another producer slot.
WrongAcknowledgementCell
Acknowledgement came from another cell.
StaleAcknowledgementGeneration
Acknowledgement came from another generation.
LaggingAcknowledgement
Acknowledgement lags the exact prior publication.
Fields
FutureAcknowledgement
Acknowledgement attempts to pre-authorize future reuse.
Fields
StaleSequence
Observed sequence differs from expectation.
Fields
PayloadTooLarge
Peer-declared payload exceeds fixed capacity.
ChangedPayloadLength
Payload length changed during the copy window.
Fields
WrongObservationRole
Observation belongs to another role.
Trait Implementations§
impl Copy for SlotError
impl Eq for SlotError
Source§impl Error for SlotError
Available on crate feature std only.
impl Error for SlotError
std only.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()