Skip to main content

Source

Trait Source 

Source
pub trait Source<T> {
    // Required method
    fn try_pop(&mut self) -> Option<T>;
}
Expand description

Yield events.

§Implementors

Required Methods§

Source

fn try_pop(&mut self) -> Option<T>

Pull the next event, or None if nothing is available.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Copy, const N: usize> Source<T> for ph_eventing::event_buf::Consumer<'_, T, N>

Source§

impl<T: Copy, const N: usize> Source<T> for ph_eventing::seq_ring::Consumer<'_, T, N>