Update embassy

This commit is contained in:
kalkyl
2023-04-27 19:37:19 +02:00
parent 0c8e5f92c7
commit 4d551a5865
5 changed files with 26 additions and 18 deletions

View File

@ -25,12 +25,20 @@ enum IoctlStateInner {
Done { resp_len: usize },
}
#[derive(Default)]
struct Wakers {
control: WakerRegistration,
runner: WakerRegistration,
}
impl Default for Wakers {
fn default() -> Self {
Self {
control: WakerRegistration::new(),
runner: WakerRegistration::new(),
}
}
}
pub struct IoctlState {
state: Cell<IoctlStateInner>,
wakers: RefCell<Wakers>,