pub enum SendgridError {
RequestError(Error),
SerdeError(Error),
SystemTimeError(SystemTimeError),
CustomError(String),
}
Variants§
Implementations§
Source§impl SendgridError
impl SendgridError
pub fn new_custom_error(msg: &str) -> Self
Trait Implementations§
Source§impl Debug for SendgridError
impl Debug for SendgridError
Source§impl Display for SendgridError
impl Display for SendgridError
Source§impl Error for SendgridError
impl Error for SendgridError
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<Error> for SendgridError
impl From<Error> for SendgridError
Source§impl From<Error> for SendgridError
impl From<Error> for SendgridError
Source§impl From<SystemTimeError> for SendgridError
impl From<SystemTimeError> for SendgridError
Source§fn from(err: SystemTimeError) -> Self
fn from(err: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendgridError
impl !RefUnwindSafe for SendgridError
impl Send for SendgridError
impl Sync for SendgridError
impl Unpin for SendgridError
impl !UnwindSafe for SendgridError
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