Enum nats::jetstream::DeliverPolicy[][src]

#[repr(u8)]pub enum DeliverPolicy {
    All,
    Last,
    New,
    ByStartSeq,
    ByStartTime,
}

DeliverPolicy determines how the consumer should select the first message to deliver.

Variants

All

All causes the consumer to receive the oldest messages still present in the system. This is the default.

Last

Last will start the consumer with the last sequence received.

New

New will only deliver new messages that are received by the JetStream server after the consumer is created.

ByStartSeq

ByStartSeq will look for a defined starting sequence to the consumer’s configured opt_start_seq parameter.

ByStartTime

ByStartTime will select the first messsage with a timestamp >= to the consumer’s configured opt_start_time parameter.

Trait Implementations

impl Clone for DeliverPolicy[src]

impl Copy for DeliverPolicy[src]

impl Debug for DeliverPolicy[src]

impl Default for DeliverPolicy[src]

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

impl Serialize for DeliverPolicy[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> Same<T> for T

type Output = T

Should always be Self

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>,