Struct simics_api_sys::bindings::cdrom_media_interface
source · #[repr(C)]pub struct cdrom_media_interface {
pub read_toc: Option<unsafe extern "C" fn(media: *mut conf_object_t, buf: *mut uint8, msf: c_int, start_track: c_int) -> c_int>,
pub capacity: Option<unsafe extern "C" fn(media: *mut conf_object_t) -> uint32>,
pub read_block: Option<unsafe extern "C" fn(media: *mut conf_object_t, buf: *mut uint8, lba: c_int) -> c_int>,
pub read_raw_block: Option<unsafe extern "C" fn(media: *mut conf_object_t, buf: *mut uint8, lba: c_int) -> c_int>,
pub insert: Option<unsafe extern "C" fn(media: *mut conf_object_t) -> c_int>,
pub eject: Option<unsafe extern "C" fn(media: *mut conf_object_t)>,
}
Fields§
§read_toc: Option<unsafe extern "C" fn(media: *mut conf_object_t, buf: *mut uint8, msf: c_int, start_track: c_int) -> c_int>
§capacity: Option<unsafe extern "C" fn(media: *mut conf_object_t) -> uint32>
§read_block: Option<unsafe extern "C" fn(media: *mut conf_object_t, buf: *mut uint8, lba: c_int) -> c_int>
§read_raw_block: Option<unsafe extern "C" fn(media: *mut conf_object_t, buf: *mut uint8, lba: c_int) -> c_int>
§insert: Option<unsafe extern "C" fn(media: *mut conf_object_t) -> c_int>
§eject: Option<unsafe extern "C" fn(media: *mut conf_object_t)>
Trait Implementations§
source§impl Clone for cdrom_media_interface
impl Clone for cdrom_media_interface
source§fn clone(&self) -> cdrom_media_interface
fn clone(&self) -> cdrom_media_interface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for cdrom_media_interface
impl Debug for cdrom_media_interface
source§impl Default for cdrom_media_interface
impl Default for cdrom_media_interface
source§fn default() -> cdrom_media_interface
fn default() -> cdrom_media_interface
Returns the “default value” for a type. Read more
source§impl Hash for cdrom_media_interface
impl Hash for cdrom_media_interface
source§impl Ord for cdrom_media_interface
impl Ord for cdrom_media_interface
source§fn cmp(&self, other: &cdrom_media_interface) -> Ordering
fn cmp(&self, other: &cdrom_media_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for cdrom_media_interface
impl PartialEq for cdrom_media_interface
source§impl PartialOrd for cdrom_media_interface
impl PartialOrd for cdrom_media_interface
impl Copy for cdrom_media_interface
impl Eq for cdrom_media_interface
impl StructuralPartialEq for cdrom_media_interface
Auto Trait Implementations§
impl Freeze for cdrom_media_interface
impl RefUnwindSafe for cdrom_media_interface
impl Send for cdrom_media_interface
impl Sync for cdrom_media_interface
impl Unpin for cdrom_media_interface
impl UnwindSafe for cdrom_media_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)