Update embassy
This commit is contained in:
10
src/ioctl.rs
10
src/ioctl.rs
@ -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>,
|
||||
|
Reference in New Issue
Block a user