pub enum ManagerError {
Api {
status: u16,
code: Option<String>,
message: String,
body: String,
},
Network(String),
Decode(String),
InvalidArgument(String),
}Expand description
The error type returned by every facade call.
Variants§
Api
A non-2xx response from the manager API.
Fields
Network(String)
A transport/network failure.
Decode(String)
A response that could not be decoded.
InvalidArgument(String)
An argument supplied to the SDK was invalid (e.g. a malformed id).
Trait Implementations§
Source§impl Debug for ManagerError
impl Debug for ManagerError
Source§impl Display for ManagerError
impl Display for ManagerError
Source§impl Error for ManagerError
impl Error for ManagerError
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 ManagerError
impl RefUnwindSafe for ManagerError
impl Send for ManagerError
impl Sync for ManagerError
impl Unpin for ManagerError
impl UnsafeUnpin for ManagerError
impl UnwindSafe for ManagerError
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