pub enum ClientError {
Body,
Network(String),
Cast,
NoWindow,
ResponseShape,
ResponseText,
RequestError,
JsException,
}Expand description
All the ways a request can go wrong.
not exhaustive
Variants§
Body
The body couldn’t be built
Network(String)
An error caused by window.fetch
Cast
Error in a dynamic JS cast that should have worked
NoWindow
No window object could be retrieved
ResponseShape
Response shape does not match the generated code
ResponseText
Response could not be converted to text
RequestError
Exception thrown when building the request
JsException
Other JS exception
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Fail for ClientError
impl Fail for ClientError
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl PartialEq for ClientError
impl PartialEq for ClientError
impl StructuralPartialEq for ClientError
Auto Trait Implementations§
impl Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnwindSafe for ClientError
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