pub enum SqlPeerStoreError {
Deserialize(Error),
Empty,
SQL(Error),
}Expand description
Errors while reading or writing to and from a SQL-based peer backend.
Variants§
Deserialize(Error)
A consensus critical data structure is malformed.
Empty
There are no known peers in the database.
SQL(Error)
An error occured performing a SQL operation.
Trait Implementations§
Source§impl Debug for SqlPeerStoreError
impl Debug for SqlPeerStoreError
Source§impl Display for SqlPeerStoreError
impl Display for SqlPeerStoreError
Source§impl Error for SqlPeerStoreError
impl Error for SqlPeerStoreError
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 SqlPeerStoreError
impl From<Error> for SqlPeerStoreError
Auto Trait Implementations§
impl Freeze for SqlPeerStoreError
impl !RefUnwindSafe for SqlPeerStoreError
impl Send for SqlPeerStoreError
impl Sync for SqlPeerStoreError
impl Unpin for SqlPeerStoreError
impl !UnwindSafe for SqlPeerStoreError
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