pub enum MgmtClientError {
Io(Error),
Encode(Error),
Decode(Error),
EmptyResponse,
Server(WireError),
Http {
status: u16,
body: String,
},
}Variants§
Io(Error)
Encode(Error)
Decode(Error)
EmptyResponse
Server(WireError)
Http
Non-200 HTTP response from the management endpoint. Only ever
surfaced by crate::http_client::HttpMgmtClient; the Unix
transport has no equivalent shape.
Trait Implementations§
Source§impl Debug for MgmtClientError
impl Debug for MgmtClientError
Source§impl Display for MgmtClientError
impl Display for MgmtClientError
Source§impl Error for MgmtClientError
impl Error for MgmtClientError
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 MgmtClientError
impl !RefUnwindSafe for MgmtClientError
impl Send for MgmtClientError
impl Sync for MgmtClientError
impl Unpin for MgmtClientError
impl UnsafeUnpin for MgmtClientError
impl !UnwindSafe for MgmtClientError
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