Struct uefi::data_types::Event
source · pub struct Event(/* private fields */);
Expand description
Handle to an event structure, guaranteed to be non-null.
If you need to have a nullable event, use Option<Event>
.
Implementations§
source§impl Event
impl Event
sourcepub const unsafe fn unsafe_clone(&self) -> Self
pub const unsafe fn unsafe_clone(&self) -> Self
Clone this Event
§Safety
When an event is closed by calling BootServices::close_event
, that event and ALL references
to it are invalidated and the underlying memory is freed by firmware. The caller must ensure
that any clones of a closed Event
are never used again.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more