pub enum Error {
KeySerialization(Box<dyn AnyError, Global>),
Core(Error),
}
Expand description
Errors that arise when interacting with views.
Variants§
KeySerialization(Box<dyn AnyError, Global>)
An error occurred while serializing or deserializing keys emitted in a view.
Core(Error)
An error unrelated to views.
Implementations§
§impl Error
impl Error
pub fn key_serialization<E>(error: E) -> Errorwhere
E: AnyError,
pub fn key_serialization<E>(error: E) -> Errorwhere E: AnyError,
Returns a Self::KeySerialization
instance after boxing the error.
Trait Implementations§
§impl Error for Error
impl Error for Error
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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