pub type PublishError = Error<PublishErrorKind>;
Expand description
An error returned from the Client::publish
, Client::publish_with_headers
,
Client::publish_with_reply
or Client::publish_with_reply_and_headers
functions.
Aliased Type§
struct PublishError { /* private fields */ }
Implementations
Trait Implementations§
Source§impl From<PollSendError<Command>> for PublishError
impl From<PollSendError<Command>> for PublishError
Source§fn from(err: PollSendError<Command>) -> Self
fn from(err: PollSendError<Command>) -> Self
Converts to this type from the input type.
Source§impl From<SendError<Command>> for PublishError
impl From<SendError<Command>> for PublishError
Source§impl<Kind> Error for Error<Kind>
impl<Kind> Error for Error<Kind>
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()