Struct FileProtocolV1
Source #[repr(C)]
pub struct FileProtocolV1 {
pub revision: FileProtocolRevision,
pub open: unsafe extern "efiapi" fn(this: *mut Self, new_handle: *mut *mut Self, file_name: *const Char16, open_mode: FileMode, attributes: FileAttribute) -> Status,
pub close: unsafe extern "efiapi" fn(this: *mut Self) -> Status,
pub delete: unsafe extern "efiapi" fn(this: *mut Self) -> Status,
pub read: unsafe extern "efiapi" fn(this: *mut Self, buffer_size: *mut usize, buffer: *mut c_void) -> Status,
pub write: unsafe extern "efiapi" fn(this: *mut Self, buffer_size: *mut usize, buffer: *const c_void) -> Status,
pub get_position: unsafe extern "efiapi" fn(this: *const Self, position: *mut u64) -> Status,
pub set_position: unsafe extern "efiapi" fn(this: *mut Self, position: u64) -> Status,
pub get_info: unsafe extern "efiapi" fn(this: *mut Self, information_type: *const Guid, buffer_size: *mut usize, buffer: *mut c_void) -> Status,
pub set_info: unsafe extern "efiapi" fn(this: *mut Self, information_type: *const Guid, buffer_size: usize, buffer: *const c_void) -> Status,
pub flush: unsafe extern "efiapi" fn(this: *mut Self) -> Status,
}
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.