pub enum AdminError {
Http(Error),
Status {
code: u16,
body: String,
},
Json(Error),
Url(ParseError),
Builder(String),
InvalidName(String),
Protocol(String),
}Expand description
Errors returned by the admin client.
Variants§
Http(Error)
Transport-layer error from reqwest.
Status
API returned a non-success HTTP status.
Fields
Json(Error)
JSON decode error.
Url(ParseError)
URL parse / construction error.
Builder(String)
Builder configuration error (missing service URL, invalid argument…).
InvalidName(String)
Caller passed a namespace or topic name that the client could not parse.
Protocol(String)
Broker returned a response that violates the documented wire contract
(e.g. negative ledgerId from getMessageIdByIndex, which Java
MessageIdImpl cannot represent either).
Trait Implementations§
Source§impl Debug for AdminError
impl Debug for AdminError
Source§impl Display for AdminError
impl Display for AdminError
Source§impl Error for AdminError
impl Error for AdminError
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 AdminError
impl From<Error> for AdminError
Source§impl From<Error> for AdminError
impl From<Error> for AdminError
Source§impl From<ParseError> for AdminError
impl From<ParseError> for AdminError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AdminError
impl !UnwindSafe for AdminError
impl Freeze for AdminError
impl Send for AdminError
impl Sync for AdminError
impl Unpin for AdminError
impl UnsafeUnpin for AdminError
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