pub enum ErrorBody {
Basic {
kind: ErrorKind,
message: String,
origin: Option<ErrorOrigin>,
},
Backoff {
kind: ErrorKind,
message: String,
min_backoff_ms: Option<f64>,
max_backoff_ms: Option<f64>,
reconnect_params: Option<Vec<(String, String)>>,
origin: Option<ErrorOrigin>,
},
PushFailed {
message: String,
mutation_ids: Vec<MutationId>,
details: Option<Value>,
cause: FailureCause,
},
TransformFailed {
message: String,
query_ids: Vec<String>,
details: Option<Value>,
cause: FailureCause,
},
}Variants§
Basic
basicErrorBodySchema. origin is server or zeroCache when set.
Backoff
backoffBodySchema: zero-cache asks the client to reconnect later.
Fields
§
reconnect_params: Option<Vec<(String, String)>>Query parameters to send in the next reconnect only.
§
origin: Option<ErrorOrigin>PushFailed
pushFailedBodySchema: mutation_ids may be a subset of the pushed
mutations.
TransformFailed
transformFailedBodySchema.
Implementations§
Trait Implementations§
Source§impl JsonCodable for ErrorBody
impl JsonCodable for ErrorBody
impl StructuralPartialEq for ErrorBody
Auto Trait Implementations§
impl Forget for ErrorBody
impl Freeze for ErrorBody
impl Move for ErrorBody
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBody
impl Sync for ErrorBody
impl Unpin for ErrorBody
impl UnsafeUnpin for ErrorBody
impl UnwindSafe for ErrorBody
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