diff options
| author | Dion Dokter <[email protected]> | 2022-06-16 16:37:23 +0200 |
|---|---|---|
| committer | Dion Dokter <[email protected]> | 2022-06-16 16:37:23 +0200 |
| commit | cdacc44c5f00276b34f57c1a3db84fa1f429edd7 (patch) | |
| tree | 601b4aaf7545cfa7f8c2faac121485067340b8b9 | |
| parent | f92f46f489827ad9518d42c6bfa6d55fc6145bcf (diff) | |
Added unpin impls to the futures
| -rw-r--r-- | embassy/src/channel/pubsub.rs | 4 |
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 | ||
| 498 | impl<'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 |
| 499 | pub struct PublisherWaitFuture<'s, 'a, T: Clone> { | 501 | pub 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 | ||
| 531 | impl<'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)] |
| 531 | pub enum WaitResult<T> { | 535 | pub enum WaitResult<T> { |
