#[repr(C)]pub struct DiskIo2Protocol {
pub revision: u64,
pub cancel: unsafe extern "efiapi" fn(this: *mut Self) -> Status,
pub read_disk_ex: unsafe extern "efiapi" fn(this: *const Self, media_id: u32, offset: u64, token: *mut DiskIo2Token, buffer_size: usize, buffer: *mut c_void) -> Status,
pub write_disk_ex: unsafe extern "efiapi" fn(this: *mut Self, media_id: u32, offset: u64, token: *mut DiskIo2Token, buffer_size: usize, buffer: *const c_void) -> Status,
pub flush_disk_ex: unsafe extern "efiapi" fn(this: *mut Self, token: *mut DiskIo2Token) -> Status,
}
Fields§
§revision: u64
§cancel: unsafe extern "efiapi" fn(this: *mut Self) -> Status
§read_disk_ex: unsafe extern "efiapi" fn(this: *const Self, media_id: u32, offset: u64, token: *mut DiskIo2Token, buffer_size: usize, buffer: *mut c_void) -> Status
§write_disk_ex: unsafe extern "efiapi" fn(this: *mut Self, media_id: u32, offset: u64, token: *mut DiskIo2Token, buffer_size: usize, buffer: *const c_void) -> Status
§flush_disk_ex: unsafe extern "efiapi" fn(this: *mut Self, token: *mut DiskIo2Token) -> Status
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiskIo2Protocol
impl RefUnwindSafe for DiskIo2Protocol
impl Send for DiskIo2Protocol
impl Sync for DiskIo2Protocol
impl Unpin for DiskIo2Protocol
impl UnwindSafe for DiskIo2Protocol
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