pub struct JsonSnafu;Expand description
SNAFU context selector for the RequestError::Json variant
Implementations§
Source§impl JsonSnafu
impl JsonSnafu
Sourcepub fn build(self) -> RequestError
pub fn build(self) -> RequestError
Consume the selector and return the associated error
Sourcepub fn fail<__T>(self) -> Result<__T, RequestError>
pub fn fail<__T>(self) -> Result<__T, RequestError>
Consume the selector and return a Result with the associated error
Trait Implementations§
impl Copy for JsonSnafu
Source§impl IntoError<RequestError> for JsonSnafu
impl IntoError<RequestError> for JsonSnafu
Source§fn into_error(self, error: Self::Source) -> RequestError
fn into_error(self, error: Self::Source) -> RequestError
Combine the information to produce the error
Auto Trait Implementations§
impl Freeze for JsonSnafu
impl RefUnwindSafe for JsonSnafu
impl Send for JsonSnafu
impl Sync for JsonSnafu
impl Unpin for JsonSnafu
impl UnsafeUnpin for JsonSnafu
impl UnwindSafe for JsonSnafu
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