pub enum SpillError {
Disabled,
InvalidKey,
BudgetExceeded {
requested: u64,
available: u64,
},
RecordTooLarge(u64),
RecordExceedsLimit {
record: u64,
limit: usize,
},
CorruptHeader,
CorruptRecord,
Io(Error),
}Expand description
Failure to create, write, or validate bounded temporary storage.
Variants§
Disabled
The execution context does not permit temporary disk storage.
InvalidKey
A key must be one portable file-name component.
BudgetExceeded
The configured disk ceiling cannot retain the requested bytes.
RecordTooLarge(u64)
A record length cannot be represented on this platform.
RecordExceedsLimit
The next record exceeds the caller’s explicit memory ceiling.
Fields
CorruptHeader
The file is not a supported molframe spill artifact.
CorruptRecord
A record was truncated or failed its checksum.
Io(Error)
The operating system rejected an I/O operation.
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()
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