Enum ClaimMode

Source
pub enum ClaimMode {
    ClaimAllPending,
    ClearBacklog {
        min_idle: Duration,
        max_idle: Option<Duration>,
    },
    Autoclaim {
        min_idle: Duration,
    },
    NewOnly,
}
Expand description

Claim modes governing work-stealing from other consumers

Variants§

§

ClaimAllPending

Claim all pending entries from other consumers irregardless of min-idle-time until none remain while concurrently processing new entries until shutdown. This is useful for facilitating work-resumation for use cases in which there’s guaranteed to be at most one consumer and a restart occurs; such case requires no idle-delay to claim pending work because it can be reasoned the old consumer is offline and has no pending work in progress.

§

ClearBacklog

Process new entries until shutdown and while concurrently clearing the idle-pending backlog until none remain and max_idle has elapsed

Fields

§min_idle: Duration

min-idle-time filter for XAUTOCLAIM, which transfers ownership to this consumer of messages pending for more than .

§max_idle: Option<Duration>

max-idle time relative to reactor start time to await newly idle entries before proceeding to only claim new entries

§

Autoclaim

Process new entries until shutdown while continuously autoclaiming entries from other consumers that have not been acknowledged within the span of min_idle

Fields

§min_idle: Duration

min-idle-time filter for XAUTOCLAIM, which transfers ownership to this consumer of messages pending for more than

§

NewOnly

Only process new entries

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,