Enum prima_bridge::prelude::PrimaBridgeError
source · pub enum PrimaBridgeError {
HttpError {
url: Url,
source: Error,
},
SerializationError(Error),
SelectorNotFound(Url, String, Value),
WrongStatusCode(Url, StatusCode),
ResponseBodyNotDeserializable {
status_code: StatusCode,
source: Error,
},
EmptyBody,
MalformedVariables,
InvalidMultipartFileMimeType(String),
Utf8Error {
source: Utf8Error,
},
MiddlewareError(Error),
}
Variants§
HttpError
SerializationError(Error)
SelectorNotFound(Url, String, Value)
WrongStatusCode(Url, StatusCode)
ResponseBodyNotDeserializable
EmptyBody
MalformedVariables
InvalidMultipartFileMimeType(String)
Utf8Error
MiddlewareError(Error)
Implementations§
source§impl PrimaBridgeError
impl PrimaBridgeError
pub fn utf8_error(source: Utf8Error) -> Self
Trait Implementations§
source§impl Debug for PrimaBridgeError
impl Debug for PrimaBridgeError
source§impl Display for PrimaBridgeError
impl Display for PrimaBridgeError
source§impl Error for PrimaBridgeError
impl Error for PrimaBridgeError
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 PrimaBridgeError
impl From<Error> for PrimaBridgeError
source§impl From<Infallible> for PrimaBridgeError
impl From<Infallible> for PrimaBridgeError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PrimaBridgeError
impl Send for PrimaBridgeError
impl Sync for PrimaBridgeError
impl Unpin for PrimaBridgeError
impl !UnwindSafe for PrimaBridgeError
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