[−][src]Enum tinydb::error::DatabaseError
An error enum for the possible faliure states of the crate::Database structure.
Variants
When the item queried for was not found
A duplicate value was found when adding to the database with crate::Database::strict_dupes allowed.
When crate::Database::save_path is required but is not found. This commonly happens when loading or dumping a database with crate::Database::save_path being Option::None.
IOError(Error)
Misc std::io::Error that could not be properly handled.
When the database could not be found. This is typically raised inside of crate::Database::from when it tries to retrieve the path to the database.
When the given database name to an assumption-making function like crate::Database::auto_from does not have a valid file stem or could not convert from an std::ffi::OsString to a String.
Trait Implementations
impl Debug for DatabaseError
[src]
impl From<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, 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>,