pub struct CollectionError(/* private fields */);Expand description
Collection error.
Implementations§
Source§impl CollectionError
impl CollectionError
Sourcepub fn kind(&self) -> CollectionErrorKind
pub fn kind(&self) -> CollectionErrorKind
Error kind.
Sourcepub fn is_not_found(&self) -> bool
pub fn is_not_found(&self) -> bool
Returns true if this error is NotFound.
Sourcepub fn is_unidentified(&self) -> bool
pub fn is_unidentified(&self) -> bool
Returns true if this error is Unidentified.
Sourcepub fn is_storage_corrupted(&self) -> bool
pub fn is_storage_corrupted(&self) -> bool
Returns true if this error a StorageCorrupted.
Trait Implementations§
Source§impl Debug for CollectionError
impl Debug for CollectionError
Source§impl Display for CollectionError
impl Display for CollectionError
Source§impl Error for CollectionError
impl Error for CollectionError
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 From<SerializerError> for CollectionError
impl From<SerializerError> for CollectionError
Source§fn from(error: SerializerError) -> Self
fn from(error: SerializerError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for CollectionError
impl From<StorageError> for CollectionError
Source§fn from(error: StorageError) -> Self
fn from(error: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CollectionError
impl !RefUnwindSafe for CollectionError
impl Send for CollectionError
impl Sync for CollectionError
impl Unpin for CollectionError
impl !UnwindSafe for CollectionError
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