pub enum TraceDbClientError {
InvalidUrl(String),
InvalidConfig {
variable: String,
message: String,
},
InvalidRequest {
method: String,
path: String,
message: String,
},
Io(String),
Json(String),
Timeout {
method: String,
path: String,
timeout_ms: u64,
},
InvalidResponse {
method: String,
path: String,
message: String,
},
HttpStatus {
method: String,
path: String,
status: u16,
body: String,
},
}Variants§
InvalidUrl(String)
InvalidConfig
InvalidRequest
Io(String)
Json(String)
Timeout
InvalidResponse
HttpStatus
Implementations§
Source§impl TraceDbClientError
impl TraceDbClientError
pub fn error_response(&self) -> Option<ErrorResponse>
pub fn server_error(&self) -> Option<String>
pub fn server_error_code(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for TraceDbClientError
impl Clone for TraceDbClientError
Source§fn clone(&self) -> TraceDbClientError
fn clone(&self) -> TraceDbClientError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TraceDbClientError
impl Debug for TraceDbClientError
Source§impl Display for TraceDbClientError
impl Display for TraceDbClientError
Source§impl Error for TraceDbClientError
impl Error for TraceDbClientError
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 TraceDbClientError
impl From<Error> for TraceDbClientError
Auto Trait Implementations§
impl Freeze for TraceDbClientError
impl RefUnwindSafe for TraceDbClientError
impl Send for TraceDbClientError
impl Sync for TraceDbClientError
impl Unpin for TraceDbClientError
impl UnsafeUnpin for TraceDbClientError
impl UnwindSafe for TraceDbClientError
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