pub enum AdminClientError {
InvalidUrl {
url: String,
reason: String,
},
Connect {
addr: String,
reason: String,
},
Transport(String),
Status {
status: u16,
body: String,
},
Parse(String),
}Expand description
Errors from the admin route-explain client. Transport and protocol failures are typed so CLI handlers can map them without parsing strings.
Variants§
InvalidUrl
The --admin URL is malformed or uses an unsupported scheme.
Fields
Connect
TCP connection to the admin endpoint failed.
Transport(String)
Request send or response read failed.
Status
The admin server answered with a non-200 status.
Parse(String)
A 200 response carried a body that is not a route explanation.
Trait Implementations§
Source§impl Debug for AdminClientError
impl Debug for AdminClientError
Source§impl Display for AdminClientError
impl Display for AdminClientError
Source§impl Error for AdminClientError
impl Error for AdminClientError
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 AdminClientError
impl RefUnwindSafe for AdminClientError
impl Send for AdminClientError
impl Sync for AdminClientError
impl Unpin for AdminClientError
impl UnsafeUnpin for AdminClientError
impl UnwindSafe for AdminClientError
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