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 From<Error> for PublishError
impl From<Error> for PublishError
sourcepub fn from(error: Error) -> PublishError
pub fn from(error: Error) -> PublishError
Performs the conversion.
sourceimpl From<SigningError> for PublishError
impl From<SigningError> for PublishError
sourcepub fn from(error: SigningError) -> PublishError
pub fn from(error: SigningError) -> PublishError
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