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§
source§impl<C: Clone> Clone for ThrusterError<C>
impl<C: Clone> Clone for ThrusterError<C>
source§impl<C> Debug for ThrusterError<C>
impl<C> Debug for ThrusterError<C>
source§impl<C: Context> Error<C> for ThrusterError<C>
impl<C: Context> Error<C> for ThrusterError<C>
fn build_context(self) -> C
source§impl<C: Context> ErrorSet<C> for ThrusterError<C>
impl<C: Context> ErrorSet<C> for ThrusterError<C>
source§fn 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.
source§fn 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.
source§fn not_found_error(context: C) -> ThrusterError<C>
fn not_found_error(context: C) -> ThrusterError<C>
Error when a resource is not found.
source§fn 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§
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