pub enum MgmtClientError {
Io(Error),
Encode(Error),
Decode(Error),
EmptyResponse,
Server(WireError),
Http {
status: u16,
body: String,
},
Timeout(&'static str),
}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.
Timeout(&'static str)
Transport-level deadline expired. Phase identifies the stage:
"connect" for a stalled accept on the mgmt socket / TCP
endpoint, "read" for a server that accepted the request but
then went silent.
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()
Source§impl From<Error> for MgmtClientError
impl From<Error> for MgmtClientError
Source§fn from(source: Error) -> MgmtClientError
fn from(source: Error) -> MgmtClientError
Converts to this type from the input type.
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