Enum uefi::table::boot::SearchType
source · pub enum SearchType<'guid> {
AllHandles,
ByProtocol(&'guid Guid),
ByRegisterNotify(ProtocolSearchKey),
}
Expand description
The type of handle search to perform.
Variants§
AllHandles
Return all handles present on the system.
ByProtocol(&'guid Guid)
Returns all handles supporting a certain protocol, specified by its GUID.
If the protocol implements the Protocol
interface,
you can use the from_proto
function to construct a new SearchType
.
ByRegisterNotify(ProtocolSearchKey)
Return all handles that implement a protocol when an interface for that protocol is (re)installed.
Implementations§
source§impl<'guid> SearchType<'guid>
impl<'guid> SearchType<'guid>
sourcepub const fn from_proto<P: ProtocolPointer + ?Sized>() -> Self
pub const fn from_proto<P: ProtocolPointer + ?Sized>() -> Self
Constructs a new search type for a specified protocol.
Trait Implementations§
source§impl<'guid> Clone for SearchType<'guid>
impl<'guid> Clone for SearchType<'guid>
source§fn clone(&self) -> SearchType<'guid>
fn clone(&self) -> SearchType<'guid>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'guid> Debug for SearchType<'guid>
impl<'guid> Debug for SearchType<'guid>
impl<'guid> Copy for SearchType<'guid>
Auto Trait Implementations§
impl<'guid> Freeze for SearchType<'guid>
impl<'guid> RefUnwindSafe for SearchType<'guid>
impl<'guid> !Send for SearchType<'guid>
impl<'guid> !Sync for SearchType<'guid>
impl<'guid> Unpin for SearchType<'guid>
impl<'guid> UnwindSafe for SearchType<'guid>
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