Struct FirmwareVolume2Protocol

Source
#[repr(C)]
pub struct FirmwareVolume2Protocol { pub get_volume_attributes: unsafe extern "efiapi" fn(this: *const Self, fv_attributes: *mut FvAttributes) -> Status, pub set_volume_attributes: unsafe extern "efiapi" fn(this: *const Self, fv_attributes: *mut FvAttributes) -> Status, pub read_file: unsafe extern "efiapi" fn(this: *const Self, name_guid: *const Guid, buffer: *mut *mut c_void, buffer_size: *mut usize, found_type: *mut FvFiletype, file_attributes: *mut FvFileAttributes, authentication_status: *mut u32) -> Status, pub read_section: unsafe extern "efiapi" fn(this: *const Self, name_guid: *const Guid, section_type: SectionType, section_instance: usize, buffer: *mut *mut c_void, buffer_size: *mut usize, authentication_status: *mut u32) -> Status, pub write_file: unsafe extern "efiapi" fn(this: *const Self, number_of_files: u32, write_policy: FvWritePolicy, file_data: *const FvWriteFileData) -> Status, pub get_next_file: unsafe extern "efiapi" fn(this: *const Self, key: *mut c_void, file_type: *mut FvFiletype, name_guid: *mut Guid, attributes: *mut FvFileAttributes, size: *mut usize) -> Status, pub key_size: u32, pub parent_handle: Handle, pub get_info: unsafe extern "efiapi" fn(this: *const Self, information_type: *const Guid, buffer_size: *mut usize, buffer: *mut c_void) -> Status, pub set_info: unsafe extern "efiapi" fn(this: *const Self, information_type: *const Guid, buffer_size: usize, buffer: *const c_void) -> Status, }
Expand description

EFI_FIRMWARE_VOLUME2_PROTOCOL

Fields§

§get_volume_attributes: unsafe extern "efiapi" fn(this: *const Self, fv_attributes: *mut FvAttributes) -> Status§set_volume_attributes: unsafe extern "efiapi" fn(this: *const Self, fv_attributes: *mut FvAttributes) -> Status§read_file: unsafe extern "efiapi" fn(this: *const Self, name_guid: *const Guid, buffer: *mut *mut c_void, buffer_size: *mut usize, found_type: *mut FvFiletype, file_attributes: *mut FvFileAttributes, authentication_status: *mut u32) -> Status§read_section: unsafe extern "efiapi" fn(this: *const Self, name_guid: *const Guid, section_type: SectionType, section_instance: usize, buffer: *mut *mut c_void, buffer_size: *mut usize, authentication_status: *mut u32) -> Status§write_file: unsafe extern "efiapi" fn(this: *const Self, number_of_files: u32, write_policy: FvWritePolicy, file_data: *const FvWriteFileData) -> Status§get_next_file: unsafe extern "efiapi" fn(this: *const Self, key: *mut c_void, file_type: *mut FvFiletype, name_guid: *mut Guid, attributes: *mut FvFileAttributes, size: *mut usize) -> Status§key_size: u32§parent_handle: Handle§get_info: unsafe extern "efiapi" fn(this: *const Self, information_type: *const Guid, buffer_size: *mut usize, buffer: *mut c_void) -> Status§set_info: unsafe extern "efiapi" fn(this: *const Self, information_type: *const Guid, buffer_size: usize, buffer: *const c_void) -> Status

Implementations§

Trait Implementations§

Source§

impl Debug for FirmwareVolume2Protocol

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.