Trait geese::EventQueue

source ·
pub trait EventQueue: Sized {
    // Required method
    fn with_many_boxed(
        self,
        events: impl IntoIterator<Item = Box<dyn Any + Send + Sync>>
    ) -> Self;

    // Provided methods
    fn with<T: 'static + Send + Sync>(self, event: T) -> Self { ... }
    fn with_boxed(self, event: Box<dyn Any + Send + Sync>) -> Self { ... }
    fn with_buffer(self, events: EventBuffer) -> Self { ... }
    fn with_many<T: 'static + Send + Sync>(
        self,
        events: impl IntoIterator<Item = T>
    ) -> Self { ... }
}
Expand description

Describes a series of events that the context should execute.

Required Methods§

source

fn with_many_boxed( self, events: impl IntoIterator<Item = Box<dyn Any + Send + Sync>> ) -> Self

Adds a list of boxed events to the queue.

Provided Methods§

source

fn with<T: 'static + Send + Sync>(self, event: T) -> Self

Adds a single event to the queue.

source

fn with_boxed(self, event: Box<dyn Any + Send + Sync>) -> Self

Adds a single boxed event to the queue.

source

fn with_buffer(self, events: EventBuffer) -> Self

Adds a buffer of events to the queue.

source

fn with_many<T: 'static + Send + Sync>( self, events: impl IntoIterator<Item = T> ) -> Self

Adds a list of events to the queue.

Object Safety§

This trait is not object safe.

Implementors§