pub enum Upstream {
InitConnection(InitConnectionBody),
Ping,
DeleteClients(DeleteClientsBody),
ChangeDesiredQueries(ChangeDesiredQueriesBody),
Pull(PullRequestBody),
UpdateAuth(UpdateAuthBody),
Push(PushBody),
CloseConnection(Vec<Value>),
Inspect(InspectUpBody),
AckMutationResponses(MutationId),
Unrecognized(Vec<Value>),
}Variants§
InitConnection(InitConnectionBody)
Ping
DeleteClients(DeleteClientsBody)
ChangeDesiredQueries(ChangeDesiredQueriesBody)
Pull(PullRequestBody)
UpdateAuth(UpdateAuthBody)
Push(PushBody)
CloseConnection(Vec<Value>)
Sent before the client closes the socket. The body is any array.
Inspect(InspectUpBody)
AckMutationResponses(MutationId)
Tells zero-cache the client has seen the mutation results up to the given ID, so it can delete them.
Unrecognized(Vec<Value>)
A message whose string tag this build doesn’t know, kept as sent.
upstreamSchema is an open taggedTupleUnion, so a newer client’s
messages parse.
Implementations§
Trait Implementations§
Source§impl JsonCodable for Upstream
impl JsonCodable for Upstream
impl StructuralPartialEq for Upstream
Auto Trait Implementations§
impl Forget for Upstream
impl Freeze for Upstream
impl Move for Upstream
impl RefUnwindSafe for Upstream
impl Send for Upstream
impl Sync for Upstream
impl Unpin for Upstream
impl UnsafeUnpin for Upstream
impl UnwindSafe for Upstream
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