[][src]Enum libp2p_gossipsub::error::PublishError

pub enum PublishError {
    Duplicate,
    SigningError(SigningError),
    InsufficientPeers,
    MessageTooLarge,
    TransformFailed(Error),
}

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

impl Debug for PublishError[src]

impl From<Error> for PublishError[src]

impl From<SigningError> for PublishError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,