Skip to main content

Entry

Trait Entry 

Source
trait Entry {
    // Required method
    fn publish(&mut self, world: &World) -> bool;
}
Expand description

One subscription inside a world: what to collect and where to put it.

Required Methods§

Source

fn publish(&mut self, world: &World) -> bool

Collect and publish one tick’s worth; answers whether a reader is alive.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T, F> Entry for SnapshotCollector<T, F>
where T: Send + Sync + 'static, F: FnMut(&World) -> Option<T> + 'static,

Source§

impl<T, F> Entry for StreamCollector<T, F>
where T: Clone + Send + 'static, F: FnMut(&World, &mut Vec<T>) + 'static,