We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Option<Event>
1 parent 159f825 commit 1aa3d58Copy full SHA for 1aa3d58
uefi/src/proto/network/snp.rs
@@ -270,8 +270,8 @@ impl SimpleNetwork {
270
/// On QEMU, this event seems to never fire; it is suggested to verify that your implementation
271
/// of UEFI properly implements this event before using it.
272
#[must_use]
273
- pub const fn wait_for_packet(&self) -> &Event {
274
- unsafe { &*(ptr::from_ref(&self.0.wait_for_packet).cast::<Event>()) }
+ pub fn wait_for_packet_event(&self) -> Option<Event> {
+ unsafe { Event::from_ptr(self.0.wait_for_packet) }
275
}
276
277
/// Returns a reference to the Simple Network mode.
0 commit comments