Enum bonsaidb_core::schema::view::Error
source · pub enum Error {
KeySerialization(Box<dyn AnyError>),
Core(Error),
}
Expand description
Errors that arise when interacting with views.
Variants§
KeySerialization(Box<dyn AnyError>)
An error occurred while serializing or deserializing keys emitted in a view.
Core(Error)
An error unrelated to views.
Implementations§
source§impl Error
impl Error
sourcepub fn key_serialization<E: AnyError>(error: E) -> Self
pub fn key_serialization<E: AnyError>(error: E) -> Self
Returns a Self::KeySerialization
instance after boxing the error.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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