pub enum ErrorPayload<V: 'static> {
Message(String),
ErrorData {
message: String,
data: V,
},
}
Variants§
Message(String)
From any error, redacted from prod deployments.
ErrorData
From ConvexError, never redacted.
message
is generic, partly for backwards compatibility.
Implementations§
source§impl<V: 'static> ErrorPayload<V>
impl<V: 'static> ErrorPayload<V>
Trait Implementations§
source§impl<V: Clone + 'static> Clone for ErrorPayload<V>
impl<V: Clone + 'static> Clone for ErrorPayload<V>
source§fn clone(&self) -> ErrorPayload<V>
fn clone(&self) -> ErrorPayload<V>
Returns a copy 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<V: Debug + 'static> Debug for ErrorPayload<V>
impl<V: Debug + 'static> Debug for ErrorPayload<V>
source§impl<V: PartialEq + 'static> PartialEq for ErrorPayload<V>
impl<V: PartialEq + 'static> PartialEq for ErrorPayload<V>
impl<V: Eq + 'static> Eq for ErrorPayload<V>
impl<V: 'static> StructuralPartialEq for ErrorPayload<V>
Auto Trait Implementations§
impl<V> Freeze for ErrorPayload<V>where
V: Freeze,
impl<V> RefUnwindSafe for ErrorPayload<V>where
V: RefUnwindSafe,
impl<V> Send for ErrorPayload<V>where
V: Send,
impl<V> Sync for ErrorPayload<V>where
V: Sync,
impl<V> Unpin for ErrorPayload<V>where
V: Unpin,
impl<V> UnwindSafe for ErrorPayload<V>where
V: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.