pub enum PinUpdateError {
UnexpectedNumberOfDescendants(u64, u64),
NotPinnedRecursive,
AlreadyPinnedRecursive,
CannotUnpinUnpinned,
CannotUnpinDirectOnRecursivelyPinned,
}
Expand description
Describes the error variants for updates to object pinning.
Variants§
UnexpectedNumberOfDescendants(u64, u64)
The current and expected descendants of an already recursively pinned object don’t match.
NotPinnedRecursive
Recursive update fails as it wasn’t pinned recursively.
AlreadyPinnedRecursive
Not allowed: Adding direct pin while pinned recursive.
CannotUnpinUnpinned
Can’t unpin already inpinned.
CannotUnpinDirectOnRecursivelyPinned
Can’t unpin direct on a recursively pinned object.
Trait Implementations§
source§impl Debug for PinUpdateError
impl Debug for PinUpdateError
source§impl Display for PinUpdateError
impl Display for PinUpdateError
source§impl Error for PinUpdateError
impl Error for PinUpdateError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for PinUpdateError
impl Send for PinUpdateError
impl Sync for PinUpdateError
impl Unpin for PinUpdateError
impl UnwindSafe for PinUpdateError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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