Struct ockam_core::api::Error
source · pub struct Error { /* private fields */ }
Expand description
An error type used in response bodies.
Implementations§
source§impl Error
impl Error
pub fn new(path: &str) -> Self
pub fn new_without_path() -> Self
pub fn from_failed_request(req: &RequestHeader, message: &str) -> Error
pub fn with_method(self, m: Method) -> Self
pub fn set_method(&mut self, m: Method)
pub fn with_message(self, m: impl AsRef<str>) -> Self
pub fn with_cause(self, e: Error) -> Self
pub fn path(&self) -> Option<&str>
pub fn method(&self) -> Option<Method>
pub fn message(&self) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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