pub enum EphemeronMutationError {
Allocation(EdgeAllocationError),
UnknownEdge(EdgeId),
WrongKind {
edge: EdgeId,
actual: EdgeKind,
},
EntryChanged {
expected_key: ManagedId,
expected_value: ManagedId,
actual_key: ManagedId,
actual_value: ManagedId,
},
}Expand description
A failed checked mutation of an ephemeron entry.
Variants§
Allocation(EdgeAllocationError)
Allocating a stable identity for a new entry failed.
UnknownEdge(EdgeId)
The requested identity is not a live ephemeron entry of this node.
WrongKind
The identity is live, but has different collection semantics.
Fields
EntryChanged
The entry exists, but no longer contains the caller’s expected pair.
Trait Implementations§
Source§impl Clone for EphemeronMutationError
impl Clone for EphemeronMutationError
Source§fn clone(&self) -> EphemeronMutationError
fn clone(&self) -> EphemeronMutationError
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 EphemeronMutationError
Source§impl Debug for EphemeronMutationError
impl Debug for EphemeronMutationError
Source§impl Display for EphemeronMutationError
impl Display for EphemeronMutationError
impl Eq for EphemeronMutationError
Source§impl Error for EphemeronMutationError
impl Error for EphemeronMutationError
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 From<EdgeAllocationError> for EphemeronMutationError
impl From<EdgeAllocationError> for EphemeronMutationError
Source§fn from(error: EdgeAllocationError) -> Self
fn from(error: EdgeAllocationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EphemeronMutationError
impl PartialEq for EphemeronMutationError
impl StructuralPartialEq for EphemeronMutationError
Auto Trait Implementations§
impl Freeze for EphemeronMutationError
impl RefUnwindSafe for EphemeronMutationError
impl Send for EphemeronMutationError
impl Sync for EphemeronMutationError
impl Unpin for EphemeronMutationError
impl UnsafeUnpin for EphemeronMutationError
impl UnwindSafe for EphemeronMutationError
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