pub enum BatchError {
InvalidLimits,
Empty,
TooManyRegions,
DuplicateRegionId(RegionId),
BatchBytesExceeded,
InvalidRegionLength,
UnknownRegion(RegionId),
WrongDirection(RegionId),
CommitMismatch,
}Expand description
Portable batch construction or active-set lookup failure.
Variants§
InvalidLimits
Negotiated batch limits are zero or exceed hard maxima.
Empty
A batch must contain at least one region.
TooManyRegions
Region count exceeds the negotiated limit or hard maximum of sixteen.
DuplicateRegionId(RegionId)
A region ID occurs more than once in the transaction.
BatchBytesExceeded
Checked aggregate logical or mapped bytes overflowed or exceeded limits.
InvalidRegionLength
An expected region has zero or non-native logical length.
UnknownRegion(RegionId)
The keyed active set does not contain this ID.
WrongDirection(RegionId)
The requested runtime authority does not match the committed direction.
CommitMismatch
Committed mappings do not exactly match pending IDs and directions.
Trait Implementations§
Source§impl Clone for BatchError
impl Clone for BatchError
Source§fn clone(&self) -> BatchError
fn clone(&self) -> BatchError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BatchError
Source§impl Debug for BatchError
impl Debug for BatchError
Source§impl Display for BatchError
impl Display for BatchError
impl Eq for BatchError
Source§impl Error for BatchError
impl Error for BatchError
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 BatchError
impl PartialEq for BatchError
impl StructuralPartialEq for BatchError
Auto Trait Implementations§
impl Freeze for BatchError
impl RefUnwindSafe for BatchError
impl Send for BatchError
impl Sync for BatchError
impl Unpin for BatchError
impl UnsafeUnpin for BatchError
impl UnwindSafe for BatchError
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