#[non_exhaustive]pub enum MoveGroupError {
CannotMoveRoot,
NotFound(GroupId),
WouldCreateCycle,
}Expand description
Errors that can occur when moving a group to a new parent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CannotMoveRoot
The root group cannot be moved
NotFound(GroupId)
The destination group was not found in the database.
This error can also occur if the destination group belongs to a different database.
WouldCreateCycle
Moving the group would create a cycle in the group hierarchy, which is not allowed.
Trait Implementations§
Source§impl Debug for MoveGroupError
impl Debug for MoveGroupError
Source§impl Display for MoveGroupError
impl Display for MoveGroupError
Source§impl Error for MoveGroupError
impl Error for MoveGroupError
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()
Auto Trait Implementations§
impl Freeze for MoveGroupError
impl RefUnwindSafe for MoveGroupError
impl Send for MoveGroupError
impl Sync for MoveGroupError
impl Unpin for MoveGroupError
impl UnsafeUnpin for MoveGroupError
impl UnwindSafe for MoveGroupError
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