Enum serenity::utils::MessageParseError [−][src]
#[non_exhaustive]
pub enum MessageParseError {
Malformed,
Http(SerenityError),
HttpNotAvailable,
}
Expand description
Error that can be returned from Message::convert
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Malformed
When the provided string does not adhere to any known guild message format
Http(SerenityError)
Tuple Fields
When message data retrieval via HTTP failed
HttpNotAvailable
When the gateway
feature is disabled and the required information was not in cache.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MessageParseError
impl Send for MessageParseError
impl Sync for MessageParseError
impl Unpin for MessageParseError
impl !UnwindSafe for MessageParseError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more