Struct thruster::errors::ThrusterError [−][src]
pub struct ThrusterError<C> { pub context: C, pub message: String, pub status: u32, pub cause: Option<Box<dyn StdError>>, }
Fields
context: C
message: String
status: u32
cause: Option<Box<dyn StdError>>
Trait Implementations
impl<C: Clone> Clone for ThrusterError<C>
[src]
impl<C: Clone> Clone for ThrusterError<C>
[src]impl<C> Debug for ThrusterError<C>
[src]
impl<C> Debug for ThrusterError<C>
[src]impl<C: Context> Error<C> for ThrusterError<C>
[src]
impl<C: Context> Error<C> for ThrusterError<C>
[src]fn build_context(self) -> C
[src]
impl<C: Context> ErrorSet<C> for ThrusterError<C>
[src]
impl<C: Context> ErrorSet<C> for ThrusterError<C>
[src]fn parsing_error(context: C, error: &str) -> ThrusterError<C>
[src]
fn generic_error(context: C) -> ThrusterError<C>
[src]
fn unauthorized_error(context: C) -> ThrusterError<C>
[src]
fn not_found_error(context: C) -> ThrusterError<C>
[src]
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,
C: Unpin,
impl<C> !UnwindSafe for ThrusterError<C>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more