pub enum CeaCoreError {
InvalidInput(String),
InvalidConfig(String),
GraphCorruption(String),
UnsupportedSchemaVersion {
expected: u32,
found: u32,
},
Io(Error),
Persistence(Error),
}Variants§
InvalidInput(String)
InvalidConfig(String)
GraphCorruption(String)
UnsupportedSchemaVersion
Io(Error)
Persistence(Error)
Persistence-layer error. Wraps postcard::Error (which is a
single enum type covering both serialize and deserialize
failures — much cleaner than bincode 2’s split EncodeError /
DecodeError design). The bincode 1.3.3 source this replaced
had a similar #[from] bincode::Error design; the API is
effectively identical at the call site.
Trait Implementations§
Source§impl Debug for CeaCoreError
impl Debug for CeaCoreError
Source§impl Display for CeaCoreError
impl Display for CeaCoreError
Source§impl Error for CeaCoreError
impl Error for CeaCoreError
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 CeaCoreError
impl From<Error> for CeaCoreError
Auto Trait Implementations§
impl !RefUnwindSafe for CeaCoreError
impl !UnwindSafe for CeaCoreError
impl Freeze for CeaCoreError
impl Send for CeaCoreError
impl Sync for CeaCoreError
impl Unpin for CeaCoreError
impl UnsafeUnpin for CeaCoreError
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