pub enum GmailClientStdError {
Send(GmailSendError),
Io(Error),
Tls(Error),
UrlMissingHost(String),
UrlUnsupportedScheme {
url: String,
scheme: String,
},
}Available on crate feature
client only.Expand description
Errors that can occur on the std client.
Variants§
Send(GmailSendError)
The Gmail exchange itself failed.
Io(Error)
Reading from or writing to the stream failed.
Tls(Error)
Available on crate features
native-tls or rustls-aws or rustls-ring only.Opening the TCP/TLS connection failed.
UrlMissingHost(String)
Available on crate features
native-tls or rustls-aws or rustls-ring only.The API base URL carries no host to connect to.
UrlUnsupportedScheme
Available on crate features
native-tls or rustls-aws or rustls-ring only.The API base URL scheme is neither http nor https.
Trait Implementations§
Source§impl Debug for GmailClientStdError
impl Debug for GmailClientStdError
Source§impl Display for GmailClientStdError
impl Display for GmailClientStdError
Source§impl Error for GmailClientStdError
impl Error for GmailClientStdError
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 GmailClientStdError
impl From<Error> for GmailClientStdError
Source§impl From<Error> for GmailClientStdError
impl From<Error> for GmailClientStdError
Source§impl From<GmailSendError> for GmailClientStdError
impl From<GmailSendError> for GmailClientStdError
Source§fn from(source: GmailSendError) -> Self
fn from(source: GmailSendError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GmailClientStdError
impl !UnwindSafe for GmailClientStdError
impl Freeze for GmailClientStdError
impl Send for GmailClientStdError
impl Sync for GmailClientStdError
impl Unpin for GmailClientStdError
impl UnsafeUnpin for GmailClientStdError
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