pub enum MsgraphSendError {
Send(Http11SendError),
SerializeRequest(Error),
ParseResponse(Error),
ParseUrl(ParseError),
InvalidRequest(String),
Api {
status: u16,
code: String,
message: String,
},
UnexpectedRedirect,
}Expand description
Error returned by MsgraphSend and the raw $value coroutines.
Variants§
Send(Http11SendError)
The underlying HTTP/1.1 exchange failed.
SerializeRequest(Error)
The JSON request body could not be serialized.
ParseResponse(Error)
The 2xx response body could not be deserialized.
ParseUrl(ParseError)
The request URL could not be built.
InvalidRequest(String)
The request arguments were rejected before sending.
Api
The Graph API answered a non-2xx status; carries the parsed error envelope.
Fields
UnexpectedRedirect
The server answered a 3xx; redirects are never followed.
Implementations§
Trait Implementations§
Source§impl Debug for MsgraphSendError
impl Debug for MsgraphSendError
Source§impl Display for MsgraphSendError
impl Display for MsgraphSendError
Source§impl Error for MsgraphSendError
impl Error for MsgraphSendError
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<Http11SendError> for MsgraphSendError
impl From<Http11SendError> for MsgraphSendError
Source§fn from(source: Http11SendError) -> Self
fn from(source: Http11SendError) -> Self
Converts to this type from the input type.
Source§impl From<MsgraphSendError> for MsgraphClientStdError
Available on crate feature client only.
impl From<MsgraphSendError> for MsgraphClientStdError
Available on crate feature
client only.Source§fn from(source: MsgraphSendError) -> Self
fn from(source: MsgraphSendError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for MsgraphSendError
impl From<ParseError> for MsgraphSendError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MsgraphSendError
impl RefUnwindSafe for MsgraphSendError
impl Send for MsgraphSendError
impl Sync for MsgraphSendError
impl Unpin for MsgraphSendError
impl UnsafeUnpin for MsgraphSendError
impl UnwindSafe for MsgraphSendError
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