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§
source§impl Ord for Event
impl Ord for Event
source§impl PartialEq for Event
impl PartialEq for Event
source§impl PartialOrd for Event
impl PartialOrd for Event
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Event
impl StructuralPartialEq for Event
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