Trait uefi_std::proto::Protocol

source ·
pub trait Protocol<T: 'static> {
    // Required methods
    fn guid() -> Guid;
    fn new(fs: &'static mut T) -> Self
       where Self: Sized;

    // Provided methods
    fn locate_protocol() -> Result<Self>
       where Self: Sized { ... }
    fn handle_protocol(handle: Handle) -> Result<Self>
       where Self: Sized { ... }
    fn locate_handle() -> Result<Vec<Handle>> { ... }
    fn one() -> Result<Self>
       where Self: Sized { ... }
    fn all() -> Vec<Self>
       where Self: Sized { ... }
}

Required Methods§

source

fn guid() -> Guid

source

fn new(fs: &'static mut T) -> Self
where Self: Sized,

Provided Methods§

source

fn locate_protocol() -> Result<Self>
where Self: Sized,

source

fn handle_protocol(handle: Handle) -> Result<Self>
where Self: Sized,

source

fn locate_handle() -> Result<Vec<Handle>>

source

fn one() -> Result<Self>
where Self: Sized,

source

fn all() -> Vec<Self>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§