#[repr(C)]pub struct BlockIoProtocol {
pub revision: u64,
pub media: *const BlockIoMedia,
pub reset: unsafe extern "efiapi" fn(this: *mut Self, extended_verification: bool) -> Status,
pub read_blocks: unsafe extern "efiapi" fn(this: *const Self, media_id: u32, lba: Lba, buffer_size: usize, buffer: *mut c_void) -> Status,
pub write_blocks: unsafe extern "efiapi" fn(this: *mut Self, media_id: u32, lba: Lba, buffer_size: usize, buffer: *const c_void) -> Status,
pub flush_blocks: unsafe extern "efiapi" fn(this: *mut Self) -> Status,
}
Fields§
§revision: u64
§media: *const BlockIoMedia
§reset: unsafe extern "efiapi" fn(this: *mut Self, extended_verification: bool) -> Status
§read_blocks: unsafe extern "efiapi" fn(this: *const Self, media_id: u32, lba: Lba, buffer_size: usize, buffer: *mut c_void) -> Status
§write_blocks: unsafe extern "efiapi" fn(this: *mut Self, media_id: u32, lba: Lba, buffer_size: usize, buffer: *const c_void) -> Status
§flush_blocks: unsafe extern "efiapi" fn(this: *mut Self) -> Status
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockIoProtocol
impl RefUnwindSafe for BlockIoProtocol
impl !Send for BlockIoProtocol
impl !Sync for BlockIoProtocol
impl Unpin for BlockIoProtocol
impl UnwindSafe for BlockIoProtocol
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