pub struct WalRecordLimitError {
pub limit: WalRecordLimit,
pub requested: u64,
pub maximum: u64,
}Expand description
A commit refused because its single WAL record would exceed limit.
The refusal happens before any byte reaches the WAL and before the commit
is applied: the store, its commit epoch and earlier commits are unchanged,
and the handle stays usable. It is a caller error about the size of one
transaction, not a storage failure: split the transaction (for example,
write a very large property value in a separate transaction, or smaller
batches) or raise the option named by WalRecordLimit::config_option.
Retrying the same transaction unchanged fails the same way.
Fields§
§limit: WalRecordLimit§requested: u64The size of the refused record, in bytes or operations.
maximum: u64The configured maximum, in the same unit.
Trait Implementations§
Source§impl Clone for WalRecordLimitError
impl Clone for WalRecordLimitError
Source§impl Debug for WalRecordLimitError
impl Debug for WalRecordLimitError
Source§impl Display for WalRecordLimitError
impl Display for WalRecordLimitError
impl Eq for WalRecordLimitError
Source§impl Error for WalRecordLimitError
impl Error for WalRecordLimitError
1.30.0 · 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 PartialEq for WalRecordLimitError
impl PartialEq for WalRecordLimitError
impl StructuralPartialEq for WalRecordLimitError
Auto Trait Implementations§
impl Forget for WalRecordLimitError
impl Freeze for WalRecordLimitError
impl Move for WalRecordLimitError
impl RefUnwindSafe for WalRecordLimitError
impl Send for WalRecordLimitError
impl Sync for WalRecordLimitError
impl Unpin for WalRecordLimitError
impl UnsafeUnpin for WalRecordLimitError
impl UnwindSafe for WalRecordLimitError
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