#[non_exhaustive]pub enum IncrementalError {
NotActive,
StaleRevision {
expected: u64,
actual: u64,
},
InvalidRange,
InvalidUtf8Boundary,
RevisionOverflow,
DocumentLengthOverflow,
CandidateLimitExceeded {
limit: usize,
},
CacheLimitExceeded {
limit: usize,
},
ResultLimitExceeded {
limit: usize,
},
TransactionStorageLimitExceeded {
required: usize,
limit: usize,
},
ResourceAccountingOverflow,
ExecutionInvariantViolated,
}Expand description
Recoverable edit errors or terminal resource/execution failures. Errors never contain source text; terminal failures preserve the old snapshot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotActive
An earlier terminal failure prevents further edits.
StaleRevision
The edit targets a different revision.
InvalidRange
The byte range is reversed or outside the document.
InvalidUtf8Boundary
A range endpoint splits a UTF-8 scalar.
RevisionOverflow
The revision cannot be incremented.
DocumentLengthOverflow
The replacement length is not representable by a contiguous Rust string.
CandidateLimitExceeded
A raw emission would exceed the per-operation limit.
CacheLimitExceeded
Old and staged cache ownership would exceed the limit.
ResultLimitExceeded
Result materialization would exceed the per-operation limit.
TransactionStorageLimitExceeded
Conservative logical transaction payload would exceed the limit.
ResourceAccountingOverflow
A resource count or payload requirement cannot be represented.
ExecutionInvariantViolated
Matching, cache or transaction invariants were violated.
Trait Implementations§
Source§impl Clone for IncrementalError
impl Clone for IncrementalError
impl Copy for IncrementalError
Source§impl Debug for IncrementalError
impl Debug for IncrementalError
Source§impl Display for IncrementalError
impl Display for IncrementalError
impl Eq for IncrementalError
Source§impl Error for IncrementalError
impl Error for IncrementalError
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()