Enum entity::DatabaseError [−][src]
pub enum DatabaseError { Connection { source: Box<dyn Error>, }, Disconnected, MissingField { name: String, }, MissingEdge { name: String, }, MissingEnt { id: Id, }, EntMutationFailed { id: Id, source: EntMutationError, }, WrongType { expected: ValueType, actual: ValueType, }, CorruptedEnt { id: Id, source: Box<dyn Error>, }, BrokenEdge { name: String, }, EntCapacityReached, Other { source: Box<dyn Error>, }, }
Represents some error the can occur when accessing the database
Variants
Show fields
Fields of MissingField
name: String
Show fields
Fields of MissingEdge
name: String
Show fields
Fields of MissingEnt
id: Id
Show fields
Fields of EntMutationFailed
id: Id
source: EntMutationError
Show fields
Fields of BrokenEdge
name: String
Trait Implementations
impl Debug for DatabaseError
[src]
impl Display for DatabaseError
[src]
impl Error for DatabaseError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DatabaseError
impl !Send for DatabaseError
impl !Sync for DatabaseError
impl Unpin for DatabaseError
impl !UnwindSafe for DatabaseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,