pub enum EventDispatchError {
UnsupportedEvent,
MissingEventHeader,
MissingHandlerForEvent(Event),
}
Expand description
The variants of EventDispatchError
represent the errors that would prevent us from calling
the handler to process the Github Webhook.
Variants§
UnsupportedEvent
Github send us a webhook for an Event
that we don’t support.
MissingEventHeader
We’re processing something that does not seem to be a Github webhook.
MissingHandlerForEvent(Event)
No handler was registered for the event we received.
Trait Implementations§
Source§impl Clone for EventDispatchError
impl Clone for EventDispatchError
Source§fn clone(&self) -> EventDispatchError
fn clone(&self) -> EventDispatchError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventDispatchError
impl Debug for EventDispatchError
Source§impl Display for EventDispatchError
impl Display for EventDispatchError
Source§impl Error for EventDispatchError
impl Error for EventDispatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for EventDispatchError
impl RefUnwindSafe for EventDispatchError
impl Send for EventDispatchError
impl Sync for EventDispatchError
impl Unpin for EventDispatchError
impl UnwindSafe for EventDispatchError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more