pub enum HarmontError {
Unauthorized,
Api {
status: u16,
code: String,
message: String,
},
Transport(String),
Decode(String),
LogStream(String),
NotFound(String),
}Expand description
Errors surfaced by crate::HarmontClient.
Variants§
The request was not authenticated (no/invalid/expired token).
Api
The API returned a non-2xx status with a structured error body.
Transport(String)
Transport/connection failure.
Decode(String)
Response body could not be decoded.
LogStream(String)
SSE log stream framing error.
NotFound(String)
The requested resource was not found (404).
Trait Implementations§
Source§impl Debug for HarmontError
impl Debug for HarmontError
Source§impl Display for HarmontError
impl Display for HarmontError
Source§impl Error for HarmontError
impl Error for HarmontError
1.30.0 · 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 Freeze for HarmontError
impl RefUnwindSafe for HarmontError
impl Send for HarmontError
impl Sync for HarmontError
impl Unpin for HarmontError
impl UnsafeUnpin for HarmontError
impl UnwindSafe for HarmontError
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