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