pub struct SingleQueueActor<T: 'static, M: MessageProcessor<T> + Send + Sync + 'static> { /* private fields */ }
Implementations§
Source§impl<T: 'static, M: MessageProcessor<T> + Send + Sync + 'static> SingleQueueActor<T, M>
impl<T: 'static, M: MessageProcessor<T> + Send + Sync + 'static> SingleQueueActor<T, M>
pub fn new( message_processor: Arc<M>, execution_pool: Arc<ThreadPool>, ) -> SingleQueueActor<T, M>
pub fn get_queue_size(&self) -> usize
pub fn add_message(&self, message: T)
pub fn complete(&self)
Auto Trait Implementations§
impl<T, M> Freeze for SingleQueueActor<T, M>
impl<T, M> RefUnwindSafe for SingleQueueActor<T, M>where
M: RefUnwindSafe,
impl<T, M> Send for SingleQueueActor<T, M>
impl<T, M> Sync for SingleQueueActor<T, M>
impl<T, M> Unpin for SingleQueueActor<T, M>
impl<T, M> UnwindSafe for SingleQueueActor<T, M>where
M: RefUnwindSafe,
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