Enum libp2p_gossipsub::error::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
sourceimpl Debug for PublishError
impl Debug for PublishError
sourceimpl Display for PublishError
impl Display for PublishError
sourceimpl Error for PublishError
impl Error for PublishError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for PublishError
impl From<Error> for PublishError
sourcefn from(error: Error) -> PublishError
fn from(error: Error) -> PublishError
Performs the conversion.
sourceimpl From<SigningError> for PublishError
impl From<SigningError> for PublishError
sourcefn from(error: SigningError) -> Self
fn from(error: SigningError) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more