Struct uefi_raw::protocol::file_system::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,
}
Fields§
§revision: FileProtocolRevision
§open: unsafe extern "efiapi" fn(this: *mut Self, new_handle: *mut *mut Self, file_name: *const Char16, open_mode: FileMode, attributes: FileAttribute) -> Status
§close: unsafe extern "efiapi" fn(this: *mut Self) -> Status
§delete: unsafe extern "efiapi" fn(this: *mut Self) -> Status
§read: unsafe extern "efiapi" fn(this: *mut Self, buffer_size: *mut usize, buffer: *mut c_void) -> Status
§write: unsafe extern "efiapi" fn(this: *mut Self, buffer_size: *mut usize, buffer: *const c_void) -> Status
§get_position: unsafe extern "efiapi" fn(this: *const Self, position: *mut u64) -> Status
§set_position: unsafe extern "efiapi" fn(this: *mut Self, position: u64) -> Status
§get_info: unsafe extern "efiapi" fn(this: *mut Self, information_type: *const Guid, buffer_size: *mut usize, buffer: *mut c_void) -> Status
§set_info: unsafe extern "efiapi" fn(this: *mut Self, information_type: *const Guid, buffer_size: usize, buffer: *const c_void) -> Status
§flush: unsafe extern "efiapi" fn(this: *mut Self) -> Status
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileProtocolV1
impl RefUnwindSafe for FileProtocolV1
impl Send for FileProtocolV1
impl Sync for FileProtocolV1
impl Unpin for FileProtocolV1
impl UnwindSafe for FileProtocolV1
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