[][src]Struct nakadi_types::subscription::SubscriptionEventTypeStats

pub struct SubscriptionEventTypeStats {
    pub event_type: EventTypeName,
    pub partitions: Vec<SubscriptionEventTypePartitionStats>,
}

Statistics of one EventType within a context of subscription.

See also Nakadi Manual

Fields

event_type: EventTypeNamepartitions: Vec<SubscriptionEventTypePartitionStats>

Implementations

impl SubscriptionEventTypeStats[src]

pub fn unconsumed_events(&self) -> Option<usize>[src]

Returns the number of unconsumed events for this event type

pub fn all_events_consumed(&self) -> bool[src]

Returns true if all events on all partitions on all event types have been consumed.

pub fn unconsumed_stream_events(&self, for_stream: StreamId) -> Option<usize>[src]

Returns the number of unconsumed events for this event type on the given stream

Trait Implementations

impl Clone for SubscriptionEventTypeStats[src]

impl Debug for SubscriptionEventTypeStats[src]

impl<'de> Deserialize<'de> for SubscriptionEventTypeStats[src]

impl Serialize for SubscriptionEventTypeStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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