pub enum PubSubError {
InvalidArgument(String),
PublishError(UStatus),
}Expand description
An error indicating a problem with publishing a message to a topic.
Variants§
InvalidArgument(String)
Indicates that the given message cannot be sent because it is not a valid Publish message.
PublishError(UStatus)
Indicates an unspecific error that occurred at the Transport Layer while trying to publish a message.
Trait Implementations§
Source§impl Debug for PubSubError
impl Debug for PubSubError
Source§impl Display for PubSubError
Available on non-tarpaulin_include only.
impl Display for PubSubError
Available on non-
tarpaulin_include only.Source§impl Error for PubSubError
impl Error for PubSubError
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()
Auto Trait Implementations§
impl !Freeze for PubSubError
impl RefUnwindSafe for PubSubError
impl Send for PubSubError
impl Sync for PubSubError
impl Unpin for PubSubError
impl UnsafeUnpin for PubSubError
impl UnwindSafe for PubSubError
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