pub enum CoreError {
InvalidKey(String),
InvalidInput(String),
Crypto(String),
Io(Error),
Json(Error),
Transport(String),
NotFound(String),
History(String),
}Expand description
Errors shared by the Nysiris native core.
Variants§
InvalidKey(String)
A key, public point, or secret is malformed.
InvalidInput(String)
Input failed validation (size limits, addressing, unknown member).
Crypto(String)
Encryption, decryption, or signature verification failed.
Io(Error)
Local filesystem failure.
Json(Error)
Envelope or journal serialization failure.
Transport(String)
The transport refused or failed to deliver a payload.
NotFound(String)
A contact, room, or other referenced item is not present locally.
History(String)
A history journal is missing, truncated, tampered with, or unreadable.
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for CoreError
impl !UnwindSafe for CoreError
impl Freeze for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
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