Skip to main content

EventReaderFn

Trait EventReaderFn 

Source
pub trait EventReaderFn:
    Fn() -> Result<Option<Event>>
    + Send
    + Sync
    + 'static { }
Expand description

Function that returns a event

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<FN: Fn() -> Result<Option<Event>> + Send + Sync + 'static> EventReaderFn for FN