Struct vector_api_client::SubscriptionClient

source ·
pub struct SubscriptionClient { /* private fields */ }
Expand description

A single SubscriptionClient enables subscription multiplexing.

Implementations§

source§

impl SubscriptionClient

source

pub fn start<T>( &self, request_body: &QueryBody<T::Variables>, ) -> BoxedSubscription<T>
where T: GraphQLQuery + Send + Sync, <T as GraphQLQuery>::ResponseData: Unpin + Send + Sync + 'static,

Start a new subscription request.

Trait Implementations§

source§

impl ComponentsSubscriptionExt for SubscriptionClient

source§

fn component_added(&self) -> BoxedSubscription<ComponentAddedSubscription>

Subscription for when a component has been added

source§

fn component_removed(&self) -> BoxedSubscription<ComponentRemovedSubscription>

Subscription for when a component has been removed

source§

impl Debug for SubscriptionClient

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl HealthSubscriptionExt for SubscriptionClient

source§

fn heartbeat_subscription( &self, interval: i64, ) -> BoxedSubscription<HeartbeatSubscription>

Executes a heartbeat subscription, on a millisecond interval.

source§

impl MetricsSubscriptionExt for SubscriptionClient

source§

fn uptime_subscription(&self) -> BoxedSubscription<UptimeSubscription>

Executes an uptime metrics subscription.

source§

fn component_allocated_bytes_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentAllocatedBytesSubscription>

Executes an all component allocated bytes subscription.

source§

fn component_received_bytes_totals_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentReceivedBytesTotalsSubscription>

Executes an all component bytes received totals subscription.

source§

fn component_received_bytes_throughputs_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentReceivedBytesThroughputsSubscription>

Executes a component bytes received throughput subscription.

source§

fn component_received_events_totals_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentReceivedEventsTotalsSubscription>

Executes an all component received events totals subscription.

source§

fn component_received_events_throughputs_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentReceivedEventsThroughputsSubscription>

Executes an all component received events throughputs subscription.

source§

fn component_sent_bytes_totals_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentSentBytesTotalsSubscription>

Executes an all component bytes sent totals subscription.

source§

fn component_sent_bytes_throughputs_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentSentBytesThroughputsSubscription>

Executes a component bytes sent throughput subscription.

source§

fn component_sent_events_totals_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentSentEventsTotalsSubscription>

Executes a component sent events totals subscription.

source§

fn component_sent_events_throughputs_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentSentEventsThroughputsSubscription>

Executes a component sent events throughputs subscription.

source§

fn component_errors_totals_subscription( &self, interval: i64, ) -> BoxedSubscription<ComponentErrorsTotalsSubscription>

source§

impl TapSubscriptionExt for SubscriptionClient

source§

fn output_events_by_component_id_patterns_subscription( &self, outputs_patterns: Vec<String>, inputs_patterns: Vec<String>, encoding: TapEncodingFormat, limit: i64, interval: i64, ) -> BoxedSubscription<OutputEventsByComponentIdPatternsSubscription>

Executes an output events subscription.

source§

impl TestSubscriptionExt for SubscriptionClient

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more