#[repr(C)]pub struct BusClass {
pub parent_class: ObjectClass,
pub print_dev: Option<unsafe extern "C" fn(*mut Monitor, *mut DeviceState, i32)>,
pub get_dev_path: Option<unsafe extern "C" fn(*mut DeviceState) -> *mut i8>,
pub get_fw_dev_path: Option<unsafe extern "C" fn(*mut DeviceState) -> *mut i8>,
pub reset: Option<unsafe extern "C" fn(*mut BusState)>,
pub realize: Option<unsafe extern "C" fn(*mut BusState, *mut *mut Error)>,
pub unrealize: Option<unsafe extern "C" fn(*mut BusState, *mut *mut Error)>,
pub max_dev: i32,
pub automatic_ids: i32,
}Fields§
§parent_class: ObjectClass§print_dev: Option<unsafe extern "C" fn(*mut Monitor, *mut DeviceState, i32)>§get_dev_path: Option<unsafe extern "C" fn(*mut DeviceState) -> *mut i8>§get_fw_dev_path: Option<unsafe extern "C" fn(*mut DeviceState) -> *mut i8>§reset: Option<unsafe extern "C" fn(*mut BusState)>§realize: Option<unsafe extern "C" fn(*mut BusState, *mut *mut Error)>§unrealize: Option<unsafe extern "C" fn(*mut BusState, *mut *mut Error)>§max_dev: i32§automatic_ids: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for BusClass
impl RefUnwindSafe for BusClass
impl !Send for BusClass
impl !Sync for BusClass
impl Unpin for BusClass
impl UnwindSafe for BusClass
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