Enum libp2p_gossipsub::PublishError
source · pub enum PublishError {
Duplicate,
SigningError(SigningError),
InsufficientPeers,
MessageTooLarge,
TransformFailed(Error),
}
Expand description
Error associated with publishing a gossipsub message.
Variants§
Duplicate
This message has already been published.
SigningError(SigningError)
An error occurred whilst signing the message.
InsufficientPeers
There were no peers to send this message to.
MessageTooLarge
The overall message was too large. This could be due to excessive topics or an excessive message size.
TransformFailed(Error)
The compression algorithm failed.
Trait Implementations§
source§impl Debug for PublishError
impl Debug for PublishError
source§impl Display for PublishError
impl Display for PublishError
source§impl Error for PublishError
impl Error for PublishError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PublishError
impl From<Error> for PublishError
source§fn from(error: Error) -> PublishError
fn from(error: Error) -> PublishError
Converts to this type from the input type.
source§impl From<SigningError> for PublishError
impl From<SigningError> for PublishError
source§fn from(error: SigningError) -> Self
fn from(error: SigningError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl !UnwindSafe for PublishError
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