Struct taple_core::message::MessageTaskManager
source · pub struct MessageTaskManager<T>where
T: TaskCommandContent + Serialize + DeserializeOwned,{ /* private fields */ }
Implementations§
source§impl<T: TaskCommandContent + Serialize + DeserializeOwned + 'static> MessageTaskManager<T>
impl<T: TaskCommandContent + Serialize + DeserializeOwned + 'static> MessageTaskManager<T>
pub fn new( sender: MessageSender, receiver: MpscChannel<MessageTaskCommand<T>, ()>, token: CancellationToken, notification_tx: Sender<Notification> ) -> MessageTaskManager<T>
pub async fn run(self)
Auto Trait Implementations§
impl<T> !RefUnwindSafe for MessageTaskManager<T>
impl<T> Send for MessageTaskManager<T>
impl<T> Sync for MessageTaskManager<T>
impl<T> Unpin for MessageTaskManager<T>
impl<T> !UnwindSafe for MessageTaskManager<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