pub enum GraphOperationError {
VertexAlreadyExists,
VertexDoesNotExist,
EdgeDoesNotExist,
}
Expand description
Describes possible errors that might happen when user interacts with graph
Variants§
VertexAlreadyExists
when user trying to create vertex with the same data
VertexDoesNotExist
when user trying to get/remove vertex by id and it doesn’t exist
EdgeDoesNotExist
when user trying to find edge by two vertices and it’s failed
Trait Implementations§
Source§impl Debug for GraphOperationError
impl Debug for GraphOperationError
Source§impl Display for GraphOperationError
impl Display for GraphOperationError
Source§impl Error for GraphOperationError
impl Error for GraphOperationError
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 GraphOperationError
impl PartialEq for GraphOperationError
impl Eq for GraphOperationError
impl StructuralPartialEq for GraphOperationError
Auto Trait Implementations§
impl Freeze for GraphOperationError
impl RefUnwindSafe for GraphOperationError
impl Send for GraphOperationError
impl Sync for GraphOperationError
impl Unpin for GraphOperationError
impl UnwindSafe for GraphOperationError
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