Struct ockam_core::api::Error
source · [−]pub struct Error<'a> { /* private fields */ }
Expand description
An error type used in response bodies.
Implementations
sourceimpl<'a> Error<'a>
impl<'a> Error<'a>
pub fn new<S: Into<Cow<'a, str>>>(path: S) -> Self
pub fn with_method(self, m: Method) -> Self
pub fn with_message<S: Into<Cow<'a, str>>>(self, m: S) -> 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<'a> RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> UnwindSafe for Error<'a>
Blanket Implementations
sourceimpl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more