pub enum JsonInvocation<T> {
Success(WireResponse<T>),
Rejected(WireResponse<HttpBody>),
}Expand description
HTTP errors retain their original body and metadata for the operation’s concrete error converter. A non-2xx response is never a transport error.
Variants§
Success(WireResponse<T>)
Rejected(WireResponse<HttpBody>)
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for JsonInvocation<T>
impl<T> !RefUnwindSafe for JsonInvocation<T>
impl<T> !Sync for JsonInvocation<T>
impl<T> !UnwindSafe for JsonInvocation<T>
impl<T> Send for JsonInvocation<T>where
WireResponse<T>: Send,
impl<T> Unpin for JsonInvocation<T>where
WireResponse<T>: Unpin,
impl<T> UnsafeUnpin for JsonInvocation<T>where
WireResponse<T>: UnsafeUnpin,
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