pub struct HeartbeatSubscription;
Expand description
HeartbeatSubscription is a subscription that returns a ‘heartbeat’ in the form of a UTC timestamp. The use-case is allowing a client to assert that the server is sending regular payloads, by using the timestamp to determine when the last healthcheck was successful.
Trait Implementations§
source§impl Clone for HeartbeatSubscription
impl Clone for HeartbeatSubscription
source§fn clone(&self) -> HeartbeatSubscription
fn clone(&self) -> HeartbeatSubscription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HeartbeatSubscription
impl Debug for HeartbeatSubscription
source§impl GraphQLQuery for HeartbeatSubscription
impl GraphQLQuery for HeartbeatSubscription
source§type Variables = Variables
type Variables = Variables
The shape of the variables expected by the query. This should be a generated struct most of the time.
source§type ResponseData = ResponseData
type ResponseData = ResponseData
The top-level shape of the response data (the
data
field in the GraphQL response). In practice this should be generated, since it is hard to write by hand without error.source§fn build_query(variables: Self::Variables) -> QueryBody<Self::Variables>
fn build_query(variables: Self::Variables) -> QueryBody<Self::Variables>
Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.
impl Copy for HeartbeatSubscription
Auto Trait Implementations§
impl Freeze for HeartbeatSubscription
impl RefUnwindSafe for HeartbeatSubscription
impl Send for HeartbeatSubscription
impl Sync for HeartbeatSubscription
impl Unpin for HeartbeatSubscription
impl UnwindSafe for HeartbeatSubscription
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)