pub enum TransientError<T: Debug + Display> {
    Error(T),
    Missing,
}Expand description
Useful for serializing errors that don’t implement Serialize, or errors where we don’t want the error details to be transported to the client.
Variants§
Trait Implementations§
Source§impl<T> Display for TransientError<T>
 
impl<T> Display for TransientError<T>
Source§impl<T: Debug + Display> Error for TransientError<T>
 
impl<T: Debug + Display> Error for TransientError<T>
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<TransientError<Error>> for AccountError
 
impl From<TransientError<Error>> for AccountError
Source§fn from(source: TransientError<Error>) -> Self
 
fn from(source: TransientError<Error>) -> Self
Converts to this type from the input type.
Source§impl From<TransientError<Error>> for BillingError
 
impl From<TransientError<Error>> for BillingError
Source§fn from(source: TransientError<Error>) -> Self
 
fn from(source: TransientError<Error>) -> Self
Converts to this type from the input type.
Source§impl From<TransientError<Error>> for ServiceError
 
impl From<TransientError<Error>> for ServiceError
Source§fn from(source: TransientError<Error>) -> Self
 
fn from(source: TransientError<Error>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for TransientError<T>where
    T: Freeze,
impl<T> RefUnwindSafe for TransientError<T>where
    T: RefUnwindSafe,
impl<T> Send for TransientError<T>where
    T: Send,
impl<T> Sync for TransientError<T>where
    T: Sync,
impl<T> Unpin for TransientError<T>where
    T: Unpin,
impl<T> UnwindSafe for TransientError<T>where
    T: 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