Struct nats::jetstream::NextRequest[][src]

pub struct NextRequest {
    pub batch: usize,
    pub expires: Option<usize>,
    pub no_wait: Option<bool>,
}

for getting next messages for pull based consumers.

Fields

batch: usize

The number of messages that are being requested to be delivered.

expires: Option<usize>

The optional number of nanoseconds that the server will store this next request for before forgetting about the pending batch size.

no_wait: Option<bool>

This optionally causes the server not to store this pending request at all, but when there are no messages to deliver will send a nil bytes message with a Status header of 404, this way you can know when you reached the end of the stream for example. A 409 is returned if the Consumer has reached MaxAckPending limits.

Trait Implementations

impl Clone for NextRequest[src]

impl Copy for NextRequest[src]

impl Debug for NextRequest[src]

impl Default for NextRequest[src]

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

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