Struct thruster::errors::ThrusterError
source · [−]pub struct ThrusterError<C> {
pub context: C,
pub message: String,
pub cause: Option<Box<dyn StdError>>,
}
Fields
context: C
message: String
cause: Option<Box<dyn StdError>>
Trait Implementations
sourceimpl<C: Clone> Clone for ThrusterError<C>
impl<C: Clone> Clone for ThrusterError<C>
sourceimpl<C> Debug for ThrusterError<C>
impl<C> Debug for ThrusterError<C>
sourceimpl<C: Context> Error<C> for ThrusterError<C>
impl<C: Context> Error<C> for ThrusterError<C>
fn build_context(self) -> C
sourceimpl<C: Context> ErrorSet<C> for ThrusterError<C>
impl<C: Context> ErrorSet<C> for ThrusterError<C>
sourcefn parsing_error(context: C, error: &str) -> ThrusterError<C>
fn parsing_error(context: C, error: &str) -> ThrusterError<C>
Error specifically caused by parsing the incoming requests.
sourcefn generic_error(context: C) -> ThrusterError<C>
fn generic_error(context: C) -> ThrusterError<C>
Generic error for generalized or obfuscated bad requests.
Error used for unauthorized access.
sourcefn not_found_error(context: C) -> ThrusterError<C>
fn not_found_error(context: C) -> ThrusterError<C>
Error when a resource is not found.
sourcefn server_error(context: C) -> ThrusterError<C>
fn server_error(context: C) -> ThrusterError<C>
An error denoting a failure on the server side.
Auto Trait Implementations
impl<C> !RefUnwindSafe for ThrusterError<C>
impl<C> !Send for ThrusterError<C>
impl<C> !Sync for ThrusterError<C>
impl<C> Unpin for ThrusterError<C>where
C: Unpin,
impl<C> !UnwindSafe for ThrusterError<C>
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