pub struct MergeError {
kind: MergeErrorKind,
}Expand description
Error produced while merging a chunk into the running state.
Fields§
§kind: MergeErrorKindImplementations§
Source§impl MergeError
impl MergeError
const fn zero_iterations() -> Self
const fn chunk_index_out_of_range(index: u32, total: u32) -> Self
const fn bucket_param_mismatch() -> Self
const fn dictionary_label_conflict(target_id: u32) -> Self
Sourcepub const fn is_zero_iterations(&self) -> bool
pub const fn is_zero_iterations(&self) -> bool
Returns whether the chunk reported zero iterations.
Sourcepub const fn chunk_index_range(&self) -> Option<(u32, u32)>
pub const fn chunk_index_range(&self) -> Option<(u32, u32)>
Returns the invalid chunk index and configured chunk total, when applicable.
Sourcepub const fn is_bucket_param_mismatch(&self) -> bool
pub const fn is_bucket_param_mismatch(&self) -> bool
Returns whether the chunk and running state use different bucket sizes.
Sourcepub const fn conflicting_target_id(&self) -> Option<u32>
pub const fn conflicting_target_id(&self) -> Option<u32>
Returns the conflicting target identifier, when applicable.
Trait Implementations§
Source§impl Clone for MergeError
impl Clone for MergeError
Source§fn clone(&self) -> MergeError
fn clone(&self) -> MergeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MergeError
impl Debug for MergeError
Source§impl Display for MergeError
impl Display for MergeError
Source§impl Error for MergeError
impl Error for MergeError
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 MergeError
impl PartialEq for MergeError
impl Eq for MergeError
impl StructuralPartialEq for MergeError
Auto Trait Implementations§
impl Freeze for MergeError
impl RefUnwindSafe for MergeError
impl Send for MergeError
impl Sync for MergeError
impl Unpin for MergeError
impl UnsafeUnpin for MergeError
impl UnwindSafe for MergeError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more