#[repr(u32)]pub enum SubObjectType {
Info = 0,
Mmio = 1,
}
Expand description
A device will have a number of sub-objects to present enough information and access for a userspace driver to be implemented.
Variants§
Info = 0
An info sub-object, which is comprised of a device-specific (or bus-specific) information structure.
Mmio = 1
A mapping of the MMIO registers for this device into an object.
Trait Implementations§
source§impl Clone for SubObjectType
impl Clone for SubObjectType
source§fn clone(&self) -> SubObjectType
fn clone(&self) -> SubObjectType
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 SubObjectType
impl Debug for SubObjectType
source§impl From<SubObjectType> for u8
impl From<SubObjectType> for u8
source§fn from(x: SubObjectType) -> Self
fn from(x: SubObjectType) -> Self
Converts to this type from the input type.
source§impl Ord for SubObjectType
impl Ord for SubObjectType
source§fn cmp(&self, other: &SubObjectType) -> Ordering
fn cmp(&self, other: &SubObjectType) -> 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 SubObjectType
impl PartialEq for SubObjectType
source§impl PartialOrd for SubObjectType
impl PartialOrd for SubObjectType
source§impl TryFrom<u8> for SubObjectType
impl TryFrom<u8> for SubObjectType
impl Copy for SubObjectType
impl Eq for SubObjectType
impl StructuralPartialEq for SubObjectType
Auto Trait Implementations§
impl Freeze for SubObjectType
impl ObjSafe for SubObjectType
impl RefUnwindSafe for SubObjectType
impl Send for SubObjectType
impl Sync for SubObjectType
impl Unpin for SubObjectType
impl UnwindSafe for SubObjectType
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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.