[][src]Struct nakadi_types::partition::Partition

pub struct Partition {
    pub partition: PartitionId,
    pub oldest_available_offset: CursorOffset,
    pub newest_available_offset: CursorOffset,
    pub unconsumed_events: Option<u64>,
}

Partition information. Can be helpful when trying to start a stream using an unmanaged API.

This information is not related to the state of the consumer clients.

See also Nakadi Manual

Fields

partition: PartitionIdoldest_available_offset: CursorOffset

An offset of the oldest available Event in that partition. This value will be changing upon removal of Events from the partition by the background archiving/cleanup mechanism.

newest_available_offset: CursorOffset

An offset of the newest available Event in that partition. This value will be changing upon reception of new events for this partition by Nakadi.

This value can be used to construct a cursor when opening streams (see GET /event-type/{name}/events for details).

Might assume the special name BEGIN, meaning a pointer to the offset of the oldest available event in the partition.

unconsumed_events: Option<u64>

Approximate number of events unconsumed by the client. This is also known as consumer lag and is used for monitoring purposes by consumers interested in keeping an eye on the number of unconsumed events.

If the event type uses ‘compact’ cleanup policy - then the actual number of unconsumed events in this partition can be lower than the one reported in this field.

Implementations

impl Partition[src]

Trait Implementations

impl Clone for Partition[src]

impl Debug for Partition[src]

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

impl From<Partition> for PartitionId[src]

impl Serialize for Partition[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>,