Enum rust_ipfs::PublishError
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§
§impl Debug for PublishError
impl Debug for PublishError
§impl Display for PublishError
impl Display for PublishError
§impl Error for PublishError
impl Error for PublishError
§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()
§impl From<Error> for PublishError
impl From<Error> for PublishError
§fn from(error: Error) -> PublishError
fn from(error: Error) -> PublishError
Converts to this type from the input type.
§impl From<SigningError> for PublishError
impl From<SigningError> for PublishError
§fn from(error: SigningError) -> PublishError
fn from(error: SigningError) -> PublishError
Converts to this type from the input type.