Skip to main content

FirmwareManagementProtocol

Struct FirmwareManagementProtocol 

Source
#[repr(C)]
pub struct FirmwareManagementProtocol { pub get_image_info: unsafe extern "efiapi" fn(this: *const Self, image_info_size: *mut usize, image_info: *mut FirmwareImageDescriptor, descriptor_version: *mut u32, descriptor_count: *mut u8, descriptor_size: *mut usize, package_version: *mut u32, package_version_name: *mut *mut Char16) -> Status, pub get_image: unsafe extern "efiapi" fn(this: *const Self, image_index: u8, image: *mut c_void, image_size: *mut usize) -> Status, pub set_image: unsafe extern "efiapi" fn(this: *const Self, image_index: u8, image: *const c_void, image_size: usize, vendor_code: *const c_void, progress: unsafe extern "efiapi" fn(completion: usize) -> Status, abort_reason: *mut *mut Char16) -> Status, pub check_image: unsafe extern "efiapi" fn(this: *const Self, image_index: u8, image: *const c_void, image_size: usize, image_updatable: *mut ImageUpdatable) -> Status, pub get_package_info: unsafe extern "efiapi" fn(this: *const Self, package_version: *mut u32, package_version_name: *mut *mut Char16, package_version_name_max_len: *mut u32, attributes_supported: *mut PackageAttributes, attributes_setting: *mut PackageAttributes) -> Status, pub set_package_info: unsafe extern "efiapi" fn(this: *const Self, image: *const c_void, image_size: usize, vendor_code: *const c_void, package_version: u32, package_version_name: *const Char16) -> Status, }
Expand description

EFI_FIRMWARE_MANAGEMENT_PROTOCOL

Fields§

§get_image_info: unsafe extern "efiapi" fn(this: *const Self, image_info_size: *mut usize, image_info: *mut FirmwareImageDescriptor, descriptor_version: *mut u32, descriptor_count: *mut u8, descriptor_size: *mut usize, package_version: *mut u32, package_version_name: *mut *mut Char16) -> Status§get_image: unsafe extern "efiapi" fn(this: *const Self, image_index: u8, image: *mut c_void, image_size: *mut usize) -> Status§set_image: unsafe extern "efiapi" fn(this: *const Self, image_index: u8, image: *const c_void, image_size: usize, vendor_code: *const c_void, progress: unsafe extern "efiapi" fn(completion: usize) -> Status, abort_reason: *mut *mut Char16) -> Status§check_image: unsafe extern "efiapi" fn(this: *const Self, image_index: u8, image: *const c_void, image_size: usize, image_updatable: *mut ImageUpdatable) -> Status§get_package_info: unsafe extern "efiapi" fn(this: *const Self, package_version: *mut u32, package_version_name: *mut *mut Char16, package_version_name_max_len: *mut u32, attributes_supported: *mut PackageAttributes, attributes_setting: *mut PackageAttributes) -> Status§set_package_info: unsafe extern "efiapi" fn(this: *const Self, image: *const c_void, image_size: usize, vendor_code: *const c_void, package_version: u32, package_version_name: *const Char16) -> Status

Implementations§

Trait Implementations§

Source§

impl Debug for FirmwareManagementProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.