pub struct NoSQLError {
pub code: NoSQLErrorCode,
pub message: String,
}
Expand description
Enumeration of all possible errors returned by this library.
Fields§
§code: NoSQLErrorCode
§message: String
Implementations§
Source§impl NoSQLError
impl NoSQLError
pub fn new(code: NoSQLErrorCode, msg: &str) -> NoSQLError
pub fn from_int(icode: i32, msg: &str) -> NoSQLError
Trait Implementations§
Source§impl Clone for NoSQLError
impl Clone for NoSQLError
Source§fn clone(&self) -> NoSQLError
fn clone(&self) -> NoSQLError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NoSQLError
impl Debug for NoSQLError
Source§impl Display for NoSQLError
impl Display for NoSQLError
Source§impl Error for NoSQLError
impl Error for NoSQLError
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 NoSQLError
impl From<Error> for NoSQLError
Source§impl From<InvalidHeaderValue> for NoSQLError
impl From<InvalidHeaderValue> for NoSQLError
Source§fn from(e: InvalidHeaderValue) -> Self
fn from(e: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for NoSQLError
impl From<ParseError> for NoSQLError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for NoSQLError
impl From<ParseError> for NoSQLError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NoSQLError
impl RefUnwindSafe for NoSQLError
impl Send for NoSQLError
impl Sync for NoSQLError
impl Unpin for NoSQLError
impl UnwindSafe for NoSQLError
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