Struct nats::jetstream::IntervalTree[][src]

pub struct IntervalTree { /* fields omitted */ }

Records ranges of acknowledged IDs for low-memory deduplication.

Implementations

impl IntervalTree[src]

pub fn mark_processed(&mut self, id: u64) -> bool[src]

Mark this ID as being processed. Returns true if this ID was not already marked as processed.

pub fn already_processed(&self, id: u64) -> bool[src]

Returns true if this ID has already been processed.

Trait Implementations

impl Default for IntervalTree[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> 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, 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>,