pub struct Dispatch<InputImpl: 'static + Input + Send, LogicRequestType: 'static + Send> { /* private fields */ }Implementations§
Source§impl<InputImpl: 'static + Input + Send, LogicRequestType: 'static + Send> Dispatch<InputImpl, LogicRequestType>
impl<InputImpl: 'static + Input + Send, LogicRequestType: 'static + Send> Dispatch<InputImpl, LogicRequestType>
pub fn new( inputs: Vec<InputImpl>, actions: HashMap<String, Action<LogicRequestType>>, sender: Sender<LogicRequestType>, plugins: Vec<Arc<dyn InputPlugin + Send + Sync>>, ) -> Dispatch<InputImpl, LogicRequestType>
pub async fn run( self, cancellation_token: CancellationToken, ) -> Vec<JoinHandle<()>>
Auto Trait Implementations§
impl<InputImpl, LogicRequestType> Freeze for Dispatch<InputImpl, LogicRequestType>
impl<InputImpl, LogicRequestType> !RefUnwindSafe for Dispatch<InputImpl, LogicRequestType>
impl<InputImpl, LogicRequestType> Send for Dispatch<InputImpl, LogicRequestType>
impl<InputImpl, LogicRequestType> Sync for Dispatch<InputImpl, LogicRequestType>where
InputImpl: Sync,
impl<InputImpl, LogicRequestType> Unpin for Dispatch<InputImpl, LogicRequestType>where
InputImpl: Unpin,
impl<InputImpl, LogicRequestType> !UnwindSafe for Dispatch<InputImpl, LogicRequestType>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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