pub enum Error {
RequestBuild(String, String),
RequestBuildHttpsCert(String, String),
RequestExecute(String, String),
Response(String, String),
Forbidden(String),
ErrorResponseWithBody(String, StatusCode, String),
ErrorResponseWithJson(String, StatusCode, Box<ErrorResponse>),
}
Variants§
RequestBuild(String, String)
RequestBuildHttpsCert(String, String)
RequestExecute(String, String)
Response(String, String)
Forbidden(String)
ErrorResponseWithBody(String, StatusCode, String)
ErrorResponseWithJson(String, StatusCode, Box<ErrorResponse>)
Implementations§
source§impl Error
impl Error
pub fn request_build(uri: &str, msg: impl Display) -> Self
pub fn request_build_json(uri: &str, e: impl Display) -> Self
pub fn request_build_https_cert(path: &str, msg: impl Display) -> Self
pub fn execute(uri: &str, msg: impl Display) -> Self
pub fn response(uri: &str, msg: impl Display) -> Self
pub fn forbidden(uri: &str) -> Self
pub fn unexpected_status(status: StatusCode) -> String
pub fn response_unexpected_status(uri: &str, status: StatusCode) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Text for Twhere
T: Display,
impl<T> Text for Twhere
T: Display,
source§fn write_escaped(
&self,
mode: TextEscape,
target: &mut impl Write
) -> Result<(), Error>
fn write_escaped( &self, mode: TextEscape, target: &mut impl Write ) -> Result<(), Error>
Write text escaped for the given mode to
target
.