#[non_exhaustive]pub struct SubgraphMetrics { /* private fields */ }Expand description
Per-subgraph metrics.
Implementations§
Source§impl SubgraphMetrics
impl SubgraphMetrics
Sourcepub fn total_run_count(&self) -> usize
pub fn total_run_count(&self) -> usize
Number of times the subgraph has run.
Sourcepub fn total_poll_duration(&self) -> Duration
pub fn total_poll_duration(&self) -> Duration
Total time elapsed during polling (when the subgraph is actively doing work).
Sourcepub fn total_poll_count(&self) -> usize
pub fn total_poll_count(&self) -> usize
Number of times the subgraph has been polled.
Sourcepub fn total_idle_duration(&self) -> Duration
pub fn total_idle_duration(&self) -> Duration
Total time elapsed during idle (when the subgraph has yielded and is waiting for async events).
Sourcepub fn total_idle_count(&self) -> usize
pub fn total_idle_count(&self) -> usize
Number of times the subgraph has been idle.
Trait Implementations§
Source§impl Clone for SubgraphMetrics
impl Clone for SubgraphMetrics
Source§fn clone(&self) -> SubgraphMetrics
fn clone(&self) -> SubgraphMetrics
Returns a duplicate 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 SubgraphMetrics
impl Debug for SubgraphMetrics
Source§impl Default for SubgraphMetrics
impl Default for SubgraphMetrics
Source§fn default() -> SubgraphMetrics
fn default() -> SubgraphMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SubgraphMetrics
impl !RefUnwindSafe for SubgraphMetrics
impl Send for SubgraphMetrics
impl !Sync for SubgraphMetrics
impl Unpin for SubgraphMetrics
impl UnwindSafe for SubgraphMetrics
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].