[][src]Enum boomerang::QueuingPolicy

pub enum QueuingPolicy {
    NONE,
    DEFER,
    DROP,
    UPDATE,
}

Enumeration of different policies for handling events that succeed one another more rapidly than is allowed by a physical action's min. inter-arrival time.

Variants

NONE

For logical actions, the policy should always be NONE.

DEFER

For physical actions, the default policy is DEFER, which is to increase the offsets of newly-scheduled events so that the min. inter-arrival time is satisfied. This means that no events will be ignored, but they will occur later. This policy has the drawback that it may cause the event queue to grow indefinitely.

DROP

The DROP policy ignores events that are scheduled too close to one another.

UPDATE

The UPDATE policy does the following. If the time that a newly-scheduled event is in too close proximity or is still on the event queue, the value carried by that event will be updated with the value of the newly-scheduled event. If this is not possible because the original event has already been popped off the queue, the DEFER policy applies.

Trait Implementations

impl Debug for QueuingPolicy[src]

impl Eq for QueuingPolicy[src]

impl PartialEq<QueuingPolicy> for QueuingPolicy[src]

impl StructuralEq for QueuingPolicy[src]

impl StructuralPartialEq for QueuingPolicy[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, 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.