logo
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

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.