- optimize event to parse opcode only once

- optimze channels
- return mut ref for smoltcp rx
This commit is contained in:
xoviat
2023-07-19 17:49:08 -05:00
parent ca1d4179a7
commit 28254842db
12 changed files with 178 additions and 133 deletions

View File

@ -94,7 +94,7 @@ impl Mac {
}
}
pub async fn read(&self) -> Event {
pub async fn read(&self) -> Result<Event<'_>, ()> {
Event::new(self.tl_read().await)
}
}