Struct conjure_runtime::errors::RemoteError
source · pub struct RemoteError { /* private fields */ }
Expand description
An error received from a remote service.
Implementations§
source§impl RemoteError
impl RemoteError
sourcepub fn status(&self) -> &StatusCode
pub fn status(&self) -> &StatusCode
Returns the status code of the response.
sourcepub fn error(&self) -> Option<&SerializableError>
pub fn error(&self) -> Option<&SerializableError>
Returns the serialized Conjure error information in the response, if available.
Trait Implementations§
source§impl Debug for RemoteError
impl Debug for RemoteError
source§impl Display for RemoteError
impl Display for RemoteError
source§impl Error for RemoteError
impl Error for RemoteError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for RemoteError
impl RefUnwindSafe for RemoteError
impl Send for RemoteError
impl Sync for RemoteError
impl Unpin for RemoteError
impl UnwindSafe for RemoteError
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