pub struct MessagePublishError {
pub position: MessagePosition,
pub broker: Option<String>,
pub cause: Option<String>,
/* private fields */
}Expand description
Raised when publishing a message fails.
Fields§
§position: MessagePositionMessage coordinates.
broker: Option<String>Optional broker.
cause: Option<String>Optional textual cause.
Implementations§
Trait Implementations§
Source§impl Clone for MessagePublishError
impl Clone for MessagePublishError
Source§impl Debug for MessagePublishError
impl Debug for MessagePublishError
Source§impl Display for MessagePublishError
impl Display for MessagePublishError
impl Eq for MessagePublishError
Source§impl Error for MessagePublishError
impl Error for MessagePublishError
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()
Source§impl From<MessagePublishError> for DataError
impl From<MessagePublishError> for DataError
Source§fn from(value: MessagePublishError) -> Self
fn from(value: MessagePublishError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessagePublishError
impl PartialEq for MessagePublishError
impl StructuralPartialEq for MessagePublishError
Auto Trait Implementations§
impl Freeze for MessagePublishError
impl RefUnwindSafe for MessagePublishError
impl Send for MessagePublishError
impl Sync for MessagePublishError
impl Unpin for MessagePublishError
impl UnsafeUnpin for MessagePublishError
impl UnwindSafe for MessagePublishError
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