Enum flowmium::requests::ClientError
source · pub enum ClientError {
InvalidUrl(ParseError),
Request(Error),
ResponseNotOk(u16, String),
Io(Error),
UrlSchemeConversion,
Websocket(Error),
}
Expand description
An error while making a request to the server.
Variants§
InvalidUrl(ParseError)
Unable to parse an invalid or malformed URL.
Request(Error)
Unable to make a request or connection or malformed response in body.
ResponseNotOk(u16, String)
Request was sent but the server responded with non 200 HTTP status code.
Io(Error)
Error performing file operations.
UrlSchemeConversion
Unable to edit the URL scheme into a ws://
or wss://
.
Websocket(Error)
Unable to make a websocket connection.
Trait Implementations§
source§impl Debug for ClientError
impl Debug for ClientError
source§impl Display for ClientError
impl Display for ClientError
source§impl Error for ClientError
impl Error for ClientError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ClientError
impl From<Error> for ClientError
source§impl From<Error> for ClientError
impl From<Error> for ClientError
source§impl From<Error> for ClientError
impl From<Error> for ClientError
source§impl From<ParseError> for ClientError
impl From<ParseError> for ClientError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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