pub enum SpillError {
Io(Error),
InvalidConfig(&'static str),
BudgetExceeded {
query_id: QueryId,
requested: u64,
query_remaining: u64,
global_remaining: u64,
},
FrameTooLarge {
bytes: u64,
limit: u64,
},
ChecksumMismatch {
context: String,
expected: u32,
actual: u32,
},
Corrupt(String),
EncryptionRequired,
EncryptionDisabled,
Encryption(String),
Decryption(String),
}Expand description
Errors of spill configuration, I/O, budget enforcement, and verification.
Variants§
Io(Error)
Filesystem failure on the spill tree.
InvalidConfig(&'static str)
The SpillConfig failed validation.
BudgetExceeded
A frame append would exceed the per-query or the node-global spill budget (S1E-004 “bounded”).
Fields
FrameTooLarge
One frame’s plaintext payload exceeded [MAX_FRAME_PAYLOAD].
ChecksumMismatch
A frame’s stored CRC32C did not match its bytes.
Fields
Corrupt(String)
Structural corruption: bad magic, version, framing, sequence gap, or a trailer that does not match the streamed frames. Always fail-closed.
EncryptionRequired
An encrypted spill file was opened by a manager without a meta DEK.
EncryptionDisabled
A meta DEK was configured but the encryption feature is disabled.
Encryption(String)
Sealing a frame failed.
Decryption(String)
Opening a sealed frame failed (wrong key or tampering).
Trait Implementations§
Source§impl Debug for SpillError
impl Debug for SpillError
Source§impl Display for SpillError
impl Display for SpillError
Source§impl Error for SpillError
impl Error for SpillError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for SpillError
impl From<Error> for SpillError
Source§impl From<SpillError> for MongrelError
impl From<SpillError> for MongrelError
Source§fn from(error: SpillError) -> Self
fn from(error: SpillError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpillError
impl !UnwindSafe for SpillError
impl Freeze for SpillError
impl Send for SpillError
impl Sync for SpillError
impl Unpin for SpillError
impl UnsafeUnpin for SpillError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more