pub enum PublishError {
InvalidEventType(String),
Database(DbError),
}Expand description
Why Webhooks::publish refused before writing anything.
Variants§
InvalidEventType(String)
The event type is not a header-safe token: empty, whitespace, or
anything outside visible ASCII. Refused here because such a type
would otherwise become an undeliverable Cratefield-Event-Type
header value that burns every retry.
Database(DbError)
The endpoint read failed.
Trait Implementations§
Source§impl Clone for PublishError
impl Clone for PublishError
Source§impl Debug for PublishError
impl Debug for PublishError
Source§impl Display for PublishError
impl Display for PublishError
impl Eq for PublishError
Source§impl Error for PublishError
impl Error for PublishError
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()
Source§impl From<DbError> for PublishError
impl From<DbError> for PublishError
Source§impl PartialEq for PublishError
impl PartialEq for PublishError
impl StructuralPartialEq for PublishError
Auto Trait Implementations§
impl Freeze for PublishError
impl RefUnwindSafe for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnsafeUnpin for PublishError
impl UnwindSafe for PublishError
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.