pub enum LinoClientError {
Transport(Error),
Status {
status: u16,
problem: Option<LinoValue>,
message: String,
},
Encoding(String),
}Expand description
Anything that can go wrong while talking to a service.
Variants§
Transport(Error)
The request never produced a response.
Status
The service answered with a 4xx or a 5xx.
Fields
Encoding(String)
A value could not be encoded as the configured request representation.
Implementations§
Trait Implementations§
Source§impl Debug for LinoClientError
impl Debug for LinoClientError
Source§impl Display for LinoClientError
impl Display for LinoClientError
Source§impl Error for LinoClientError
impl Error for LinoClientError
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 !RefUnwindSafe for LinoClientError
impl !UnwindSafe for LinoClientError
impl Freeze for LinoClientError
impl Send for LinoClientError
impl Sync for LinoClientError
impl Unpin for LinoClientError
impl UnsafeUnpin for LinoClientError
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