pub enum ResponseOutcome {
Success,
GraphqlError,
HttpError,
TransportError,
}Expand description
Result at the protocol boundary, independent of the legacy retry classification.
Variants§
Success
A successful HTTP and GraphQL response.
GraphqlError
A GraphQL error, including one carried by HTTP 200.
HttpError
An unsuccessful HTTP status.
TransportError
No readable protocol response.
Implementations§
Source§impl ResponseOutcome
impl ResponseOutcome
Sourcepub fn of_graphql_reply(status: StatusCode, reply: Option<&Value>) -> Self
pub fn of_graphql_reply(status: StatusCode, reply: Option<&Value>) -> Self
Classify the real HTTP response and GraphQL envelope before recording success.
Trait Implementations§
Source§impl Clone for ResponseOutcome
impl Clone for ResponseOutcome
impl Copy for ResponseOutcome
Source§impl Debug for ResponseOutcome
impl Debug for ResponseOutcome
impl Eq for ResponseOutcome
Source§impl PartialEq for ResponseOutcome
impl PartialEq for ResponseOutcome
impl StructuralPartialEq for ResponseOutcome
Auto Trait Implementations§
impl Freeze for ResponseOutcome
impl RefUnwindSafe for ResponseOutcome
impl Send for ResponseOutcome
impl Sync for ResponseOutcome
impl Unpin for ResponseOutcome
impl UnsafeUnpin for ResponseOutcome
impl UnwindSafe for ResponseOutcome
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