pub enum Error<E: Send> {
MalformedDB(String),
NodeExists(String),
ExistedBefore,
MalformedInput(FromUtf8Error),
Uuid {
source: Error,
},
KV(E),
Prop(SerialisationError),
}Variants§
MalformedDB(String)
NodeExists(String)
ExistedBefore
MalformedInput(FromUtf8Error)
Uuid
KV(E)
Prop(SerialisationError)
Trait Implementations§
Source§impl<E: Send> Error for Error<E>
impl<E: Send> Error for Error<E>
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<E: Send> From<FromUtf8Error> for Error<E>
impl<E: Send> From<FromUtf8Error> for Error<E>
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl<E: Send> From<SerialisationError> for Error<E>
impl<E: Send> From<SerialisationError> for Error<E>
Source§fn from(source: SerialisationError) -> Self
fn from(source: SerialisationError) -> Self
Converts to this type from the input type.
Source§impl<N, P, K, E> GraphBuilder<N, P, Error<E>> for KvGraphStore<P, K, E>
impl<N, P, K, E> GraphBuilder<N, P, Error<E>> for KvGraphStore<P, K, E>
Source§impl<P, K, E> GraphStore<Uuid, NodeData, String, EdgeData, String, P, Error<E>> for KvGraphStore<P, K, E>
impl<P, K, E> GraphStore<Uuid, NodeData, String, EdgeData, String, P, Error<E>> for KvGraphStore<P, K, E>
fn create_node( &mut self, id: VertexId, properties: &P, ) -> Result<VertexId, Error<E>>
fn read_node(&self, id: VertexId) -> Result<NodeData, Error<E>>
fn update_node( &mut self, id: VertexId, properties: &P, ) -> Result<VertexId, Error<E>>
fn delete_node(&mut self, id: VertexId) -> Result<VertexId, Error<E>>
fn create_edge( &mut self, n1: VertexId, n2: VertexId, properties: &P, ) -> Result<HashId, Error<E>>
fn read_edge(&self, id: &HashId) -> Result<EdgeData, Error<E>>
fn delete_edge(&mut self, id: &HashId) -> Result<(), Error<E>>
fn create_property(&mut self, properties: &P) -> Result<HashId, Error<E>>
fn read_property(&self, id: &HashId) -> Result<P, Error<E>>
fn delete_property(&mut self, id: &HashId) -> Result<(), Error<E>>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> !RefUnwindSafe for Error<E>
impl<E> Send for Error<E>
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> !UnwindSafe for Error<E>
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