pub struct Device { /* private fields */ }
Expand description
A handle for a device.
Implementations§
source§impl Device
impl Device
sourcepub fn children(&self) -> DeviceChildrenIterator ⓘ
pub fn children(&self) -> DeviceChildrenIterator ⓘ
Get an iterator over the children of this device.
source§impl Device
impl Device
sourcepub fn get_mmio(&self, idx: u8) -> Option<MmioObject>
pub fn get_mmio(&self, idx: u8) -> Option<MmioObject>
Get a handle to a MMIO type subobject.
source§impl Device
impl Device
sourcepub fn repr(&self) -> &DeviceRepr
pub fn repr(&self) -> &DeviceRepr
Get a reference to a device’s representation data.
sourcepub fn repr_mut(&self) -> &mut DeviceRepr
pub fn repr_mut(&self) -> &mut DeviceRepr
Get a mutable reference to a device’s representation data.
sourcepub fn kaction(
&self,
action: KactionCmd,
value: u64,
flags: KactionFlags,
value2: u64,
) -> Result<KactionValue, KactionError>
pub fn kaction( &self, action: KactionCmd, value: u64, flags: KactionFlags, value2: u64, ) -> Result<KactionValue, KactionError>
Execute a kaction operation on a device.
Trait Implementations§
Auto Trait Implementations§
impl !DeviceSync for Device
impl Freeze for Device
impl !ObjSafe for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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