#[non_exhaustive]pub enum ErrorKind {
Show 14 variants
Io,
Corruption,
UnsupportedVersion,
UnsupportedFeature,
UnsupportedFrame,
ResourceLimit,
IncompleteTail,
InvalidArgument,
SchemaMismatch,
WriterLocked,
Poisoned,
FileReplaced,
FileTruncated,
Internal,
}Expand description
The broad category of an Acta failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io
An operating-system I/O operation failed.
Corruption
The bytes violate an implemented v0.2 invariant.
UnsupportedVersion
The file declares a format version this crate does not implement.
UnsupportedFeature
The file declares a feature bit this v0.2 implementation does not know.
UnsupportedFrame
The file declares a frame type or envelope version outside this stage.
ResourceLimit
A declared size exceeds the configured crate::Limits.
IncompleteTail
The file ends before its schema frame is complete.
InvalidArgument
The call asked for something this snapshot does not contain.
SchemaMismatch
A caller-supplied expected schema differs from the file’s own schema.
WriterLocked
Another writer already holds this crate’s cooperative exclusive lock.
Poisoned
A writer has encountered a partial I/O failure and cannot continue.
FileReplaced
The path a long-lived reader refreshes now names a different file than the one its snapshot came from.
FileTruncated
The path a long-lived reader refreshes still names its own file, but that file has shrunk below the committed boundary the snapshot holds.
A repair that removed only an uncommitted tail shrinks the file back to exactly that boundary and is accepted; this kind reports a file that went below it and so no longer contains frames the reader already committed.
Internal
A writer built something that contradicts its own invariants, which is a bug in this crate rather than a problem with any file.