pub struct Controller<ExtIn: Clone, ExtOut: Clone, SCfg, ChannelId, Event, const INNER_BUS_STACK: usize> { /* private fields */ }
Implementations§
Source§impl<ExtIn: 'static + Send + Sync + Clone, ExtOut: 'static + Send + Sync + Clone, SCfg: 'static + Send + Sync, ChannelId: 'static + Debug + Clone + Copy + Hash + PartialEq + Eq + Send + Sync, Event: 'static + Send + Sync + Clone, const INNER_BUS_STACK: usize> Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>
impl<ExtIn: 'static + Send + Sync + Clone, ExtOut: 'static + Send + Sync + Clone, SCfg: 'static + Send + Sync, ChannelId: 'static + Debug + Clone + Copy + Hash + PartialEq + Eq + Send + Sync, Event: 'static + Send + Sync + Clone, const INNER_BUS_STACK: usize> Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>
pub fn add_worker<Owner: Debug + Clone + Copy + PartialEq, ICfg: 'static + Send + Sync, Inner: WorkerInner<Owner, ExtIn, ExtOut, ChannelId, Event, ICfg, SCfg>, B: Backend<Owner>>( &mut self, tick: Duration, cfg: ICfg, stack_size: Option<usize>, )
pub fn process(&mut self) -> Option<()>
pub fn spawn(&mut self, cfg: SCfg)
pub fn shutdown(&mut self)
pub fn send_to(&mut self, worker: u16, ext: ExtIn)
pub fn send_to_best(&mut self, ext: ExtIn)
pub fn pop_event(&mut self) -> Option<ExtOut>
Trait Implementations§
Auto Trait Implementations§
impl<ExtIn, ExtOut, SCfg, ChannelId, Event, const INNER_BUS_STACK: usize> Freeze for Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>where
ExtOut: Freeze,
impl<ExtIn, ExtOut, SCfg, ChannelId, Event, const INNER_BUS_STACK: usize> !RefUnwindSafe for Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>
impl<ExtIn, ExtOut, SCfg, ChannelId, Event, const INNER_BUS_STACK: usize> Send for Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>
impl<ExtIn, ExtOut, SCfg, ChannelId, Event, const INNER_BUS_STACK: usize> Sync for Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>
impl<ExtIn, ExtOut, SCfg, ChannelId, Event, const INNER_BUS_STACK: usize> Unpin for Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>where
ExtOut: Unpin,
impl<ExtIn, ExtOut, SCfg, ChannelId, Event, const INNER_BUS_STACK: usize> !UnwindSafe for Controller<ExtIn, ExtOut, SCfg, ChannelId, Event, INNER_BUS_STACK>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more