pub struct ViturRequestError {
pub kind: ViturRequestErrorKind,
pub message: &'static str,
pub error: Box<dyn StdError + Send + Sync>,
/* private fields */
}
Expand description
Re-exports
Fields§
§kind: ViturRequestErrorKind
§message: &'static str
§error: Box<dyn StdError + Send + Sync>
Implementations§
Source§impl ViturRequestError
impl ViturRequestError
pub fn prepare( message: &'static str, error: impl StdError + 'static + Send + Sync, ) -> Self
pub fn parse( message: &'static str, error: impl StdError + 'static + Send + Sync, ) -> Self
pub fn send( message: &'static str, error: impl StdError + 'static + Send + Sync, ) -> Self
pub fn not_found( message: &'static str, error: impl StdError + 'static + Send + Sync, ) -> Self
pub fn response( message: &'static str, error: impl StdError + 'static + Send + Sync, ) -> Self
pub fn other( message: &'static str, error: impl StdError + 'static + Send + Sync, ) -> Self
pub fn with_retryable(self, can_retry: bool) -> Self
pub fn retryable(self) -> Self
Trait Implementations§
Source§impl Debug for ViturRequestError
impl Debug for ViturRequestError
Source§impl Display for ViturRequestError
impl Display for ViturRequestError
Source§impl Error for ViturRequestError
impl Error for ViturRequestError
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 RetryableError for ViturRequestError
impl RetryableError for ViturRequestError
Auto Trait Implementations§
impl Freeze for ViturRequestError
impl !RefUnwindSafe for ViturRequestError
impl Send for ViturRequestError
impl Sync for ViturRequestError
impl Unpin for ViturRequestError
impl !UnwindSafe for ViturRequestError
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