#[non_exhaustive]pub enum Error {
Decode(Error),
InvalidSession(String),
Io(Error),
Other(String),
}Expand description
An error at a native session-format boundary.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decode(Error)
A serialized value could not be decoded or encoded.
InvalidSession(String)
A persisted session artifact violated its framing or schema contract.
Io(Error)
A filesystem operation failed.
Other(String)
A format-specific operation failed without a narrower stable category.
Trait Implementations§
Source§impl Debug for InterchangeError
impl Debug for InterchangeError
Source§impl Display for InterchangeError
impl Display for InterchangeError
Source§impl Error for InterchangeError
impl Error for InterchangeError
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<Error> for InterchangeError
impl From<Error> for InterchangeError
Auto Trait Implementations§
impl !RefUnwindSafe for InterchangeError
impl !UnwindSafe for InterchangeError
impl Freeze for InterchangeError
impl Send for InterchangeError
impl Sync for InterchangeError
impl Unpin for InterchangeError
impl UnsafeUnpin for InterchangeError
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