pub enum Error {
InvalidBody {
err: String,
body: String,
},
Unreachable {
msg: String,
},
InvalidConnectionUrl,
InvalidDocResponse {
status: u16,
err: Option<DocErr>,
},
InvalidCursorResponse {
status: u16,
},
Forbidden {
err: Option<DocErr>,
},
NotFound {
err: Option<DocErr>,
},
NotModified,
PreconditionFailed {
err: Option<DocErr>,
},
BadRequest {
err: Option<DocErr>,
},
Conflict {
err: Option<DocErr>,
},
Cursor {
err: Option<BaseErr>,
},
}
Expand description
When bad things happen
Variants§
InvalidBody
Unreachable
InvalidConnectionUrl
InvalidDocResponse
InvalidCursorResponse
Forbidden
NotFound
NotModified
PreconditionFailed
BadRequest
Conflict
Cursor
Trait Implementations§
source§impl Clone for RuarangoErr
impl Clone for RuarangoErr
source§fn clone(&self) -> RuarangoErr
fn clone(&self) -> RuarangoErr
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 RuarangoErr
impl Debug for RuarangoErr
source§impl Display for RuarangoErr
impl Display for RuarangoErr
source§impl Error for RuarangoErr
impl Error for RuarangoErr
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<RuarangoErr> for RuarangoErr
impl PartialEq<RuarangoErr> for RuarangoErr
source§fn eq(&self, other: &RuarangoErr) -> bool
fn eq(&self, other: &RuarangoErr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RuarangoErr
impl Serialize for RuarangoErr
impl Eq for RuarangoErr
impl StructuralEq for RuarangoErr
impl StructuralPartialEq for RuarangoErr
Auto Trait Implementations§
impl RefUnwindSafe for RuarangoErr
impl Send for RuarangoErr
impl Sync for RuarangoErr
impl Unpin for RuarangoErr
impl UnwindSafe for RuarangoErr
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.