Trait VirtualBus

Source
pub trait VirtualBus:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn new_spawn(&self) -> SpawnOptions;
    fn listen(&self) -> Result<Box<dyn VirtualBusListener + Sync>, BusError>;
}

Required Methods§

Source

fn new_spawn(&self) -> SpawnOptions

Starts a new WAPM sub process

Source

fn listen(&self) -> Result<Box<dyn VirtualBusListener + Sync>, BusError>

Creates a listener thats used to receive BUS commands

Implementors§