diff options
| author | kalkyl <[email protected]> | 2023-04-27 19:37:19 +0200 |
|---|---|---|
| committer | kalkyl <[email protected]> | 2023-04-27 19:37:19 +0200 |
| commit | 4d551a586589b9fd8b5f92d2f98b90be4144154e (patch) | |
| tree | a2c3fa2c33d7d59905ad06c9600dc8399b8f73ce /src | |
| parent | 0c8e5f92c7ebe6fd148a986baaaa6ac746d939c2 (diff) | |
Update embassy
Diffstat (limited to 'src')
| -rw-r--r-- | src/ioctl.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ioctl.rs b/src/ioctl.rs index 89b20a2d6..0fee1ad19 100644 --- a/src/ioctl.rs +++ b/src/ioctl.rs | |||
| @@ -25,12 +25,20 @@ enum IoctlStateInner { | |||
| 25 | Done { resp_len: usize }, | 25 | Done { resp_len: usize }, |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | #[derive(Default)] | ||
| 29 | struct Wakers { | 28 | struct Wakers { |
| 30 | control: WakerRegistration, | 29 | control: WakerRegistration, |
| 31 | runner: WakerRegistration, | 30 | runner: WakerRegistration, |
| 32 | } | 31 | } |
| 33 | 32 | ||
| 33 | impl Default for Wakers { | ||
| 34 | fn default() -> Self { | ||
| 35 | Self { | ||
| 36 | control: WakerRegistration::new(), | ||
| 37 | runner: WakerRegistration::new(), | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 34 | pub struct IoctlState { | 42 | pub struct IoctlState { |
| 35 | state: Cell<IoctlStateInner>, | 43 | state: Cell<IoctlStateInner>, |
| 36 | wakers: RefCell<Wakers>, | 44 | wakers: RefCell<Wakers>, |
