pub trait StreamEngine {
type Handle;
// Required methods
fn publish(&self, atom: &Atom) -> Result<()>;
fn subscribe(
&self,
world: &WorldKey,
filter: AtomFilter,
) -> Result<Self::Handle>;
fn poll(&self, handle: &Self::Handle) -> Result<Option<Atom>>;
fn stop(&self, handle: Self::Handle) -> Result<()>;
}Expand description
Stream processing interface.
Required Associated Types§
Required Methods§
fn publish(&self, atom: &Atom) -> Result<()>
fn subscribe( &self, world: &WorldKey, filter: AtomFilter, ) -> Result<Self::Handle>
fn poll(&self, handle: &Self::Handle) -> Result<Option<Atom>>
fn stop(&self, handle: Self::Handle) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".