aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDion Dokter <[email protected]>2022-06-16 16:37:23 +0200
committerDion Dokter <[email protected]>2022-06-16 16:37:23 +0200
commitcdacc44c5f00276b34f57c1a3db84fa1f429edd7 (patch)
tree601b4aaf7545cfa7f8c2faac121485067340b8b9
parentf92f46f489827ad9518d42c6bfa6d55fc6145bcf (diff)
Added unpin impls to the futures
-rw-r--r--embassy/src/channel/pubsub.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/embassy/src/channel/pubsub.rs b/embassy/src/channel/pubsub.rs
index 021225809..ea0ccb2da 100644
--- a/embassy/src/channel/pubsub.rs
+++ b/embassy/src/channel/pubsub.rs
@@ -495,6 +495,8 @@ impl<'s, 'a, T: Clone> Future for SubscriberWaitFuture<'s, 'a, T> {
495 } 495 }
496} 496}
497 497
498impl<'s, 'a, T: Clone> Unpin for SubscriberWaitFuture<'s, 'a, T> {}
499
498/// Future for the publisher wait action 500/// Future for the publisher wait action
499pub struct PublisherWaitFuture<'s, 'a, T: Clone> { 501pub struct PublisherWaitFuture<'s, 'a, T: Clone> {
500 /// The message we need to publish 502 /// The message we need to publish
@@ -526,6 +528,8 @@ impl<'s, 'a, T: Clone> Future for PublisherWaitFuture<'s, 'a, T> {
526 } 528 }
527} 529}
528 530
531impl<'s, 'a, T: Clone> Unpin for PublisherWaitFuture<'s, 'a, T> {}
532
529/// The result of the subscriber wait procedure 533/// The result of the subscriber wait procedure
530#[derive(Debug, Clone, PartialEq)] 534#[derive(Debug, Clone, PartialEq)]
531pub enum WaitResult<T> { 535pub enum WaitResult<T> {