Enum twitch_api::eventsub::PayloadParseError
source · [−]pub enum PayloadParseError {
Utf8Error(Utf8Error),
DeserializeError(DeserError),
UnknownMessageType(String),
UnknownEventType(String),
MalformedEvent,
UnimplementedEvent {
version: String,
event_type: EventType,
},
}
Available on crate feature
eventsub
only.Expand description
Errors that can happen when parsing payload
Variants
Utf8Error(Utf8Error)
could not parse http::Request::body()
as UTF8
DeserializeError(DeserError)
could not parse http::Request::body()
as a Payload
UnknownMessageType(String)
unknown message type encountered: {0}
UnknownEventType(String)
unknown event type encountered: {0}
MalformedEvent
event could not be parsed, some context missing
UnimplementedEvent
could not find an implementation for version {version}
on event type {event_type}
in this library
Trait Implementations
sourceimpl Debug for PayloadParseError
impl Debug for PayloadParseError
sourceimpl Display for PayloadParseError
impl Display for PayloadParseError
sourceimpl Error for PayloadParseError
impl Error for PayloadParseError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<DeserError> for PayloadParseError
impl From<DeserError> for PayloadParseError
sourcefn from(source: DeserError) -> Self
fn from(source: DeserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for PayloadParseError
impl Send for PayloadParseError
impl Sync for PayloadParseError
impl Unpin for PayloadParseError
impl !UnwindSafe for PayloadParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more