pub enum ProjectionKeyError {
Show 15 variants
TooLong {
actual: usize,
maximum: usize,
},
Truncated,
TrailingBytes,
TruncatedOrTrailing,
WrongPurpose,
UnsupportedVersion,
InvalidIdentity,
ZeroProjectionId,
ZeroGeneration,
ZeroCommitSequence,
EmptyGroupKey,
EmptyComponent,
TooManyComponents,
NonScalarComponent,
InvalidCanonicalComponent,
}Expand description
A safe failure to construct or decode a projection identity or key.
Variants§
TooLong
The complete key exceeds the durable key hard limit.
Truncated
The input ends before a required field is complete.
TrailingBytes
The input contains bytes after its complete fixed shape.
TruncatedOrTrailing
The fixed shape has either missing or trailing bytes.
WrongPurpose
The key belongs to another purpose namespace.
UnsupportedVersion
The key uses an unsupported key format version.
InvalidIdentity
The projection lineage or identity payload is invalid.
ZeroProjectionId
A projection ID uses the forbidden zero sentinel.
ZeroGeneration
A projection generation uses the forbidden zero sentinel.
ZeroCommitSequence
A commit sequence uses the forbidden zero sentinel.
EmptyGroupKey
A complete group key contains no component.
EmptyComponent
A framed component has a forbidden zero byte length.
TooManyComponents
The component count exceeds the v1 hard limit.
NonScalarComponent
Null, list, or record is not a projection group scalar.
InvalidCanonicalComponent
A component is not one exact canonical scalar encoding.
Trait Implementations§
Source§impl Clone for ProjectionKeyError
impl Clone for ProjectionKeyError
impl Copy for ProjectionKeyError
Source§impl Debug for ProjectionKeyError
impl Debug for ProjectionKeyError
Source§impl Display for ProjectionKeyError
impl Display for ProjectionKeyError
impl Eq for ProjectionKeyError
Source§impl Error for ProjectionKeyError
impl Error for ProjectionKeyError
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()