pub struct Executor<T: Send + Sync + Clone + Copy + Debug + 'static> { /* private fields */ }Implementations§
Source§impl<T> Executor<T>
impl<T> Executor<T>
pub fn new() -> Executor<T>
pub fn add_watcher(&mut self, w: Box<dyn Watcher<Payload = T> + Send + Sync>)
pub fn add_middleware( &mut self, m: Box<dyn Middleware<Payload = T> + Send + Sync>, )
pub fn add_listener(&mut self, l: Box<dyn Consumer<Payload = T> + Send + Sync>)
pub fn set_listener(&mut self, l: Box<dyn Consumer<Payload = T> + Send + Sync>)
pub async fn start(self) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Executor<T>
impl<T> !RefUnwindSafe for Executor<T>
impl<T> Send for Executor<T>
impl<T> Sync for Executor<T>
impl<T> Unpin for Executor<T>
impl<T> !UnwindSafe for Executor<T>
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