pub enum BankrError {
Transport(String),
Api {
status: u16,
body: ApiErrorBody,
},
Deserialization(String),
PollTimeout {
attempts: u32,
},
JobFailed {
message: String,
},
JobCancelled,
Config(String),
}Expand description
Errors that can occur when interacting with the Bankr Agent API.
Variants§
Transport(String)
HTTP transport error from hpx-transport.
Api
The API returned a non-success HTTP status code.
Deserialization(String)
Failed to deserialize the API response.
PollTimeout
Job polling timed out.
JobFailed
Job failed on the server side.
JobCancelled
Job was cancelled.
Config(String)
Client configuration error.
Trait Implementations§
Source§impl Debug for BankrError
impl Debug for BankrError
Source§impl Display for BankrError
impl Display for BankrError
Source§impl Error for BankrError
impl Error for BankrError
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 BankrError
impl RefUnwindSafe for BankrError
impl Send for BankrError
impl Sync for BankrError
impl Unpin for BankrError
impl UnsafeUnpin for BankrError
impl UnwindSafe for BankrError
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