Enum twizzler_abi::device::SubObjectType
source · #[repr(u32)]pub enum SubObjectType {
Info,
Mmio,
}
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
An info sub-object, which is comprised of a device-specific (or bus-specific) information structure.
Mmio
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<SubObjectType> for SubObjectType
impl PartialEq<SubObjectType> for SubObjectType
source§fn eq(&self, other: &SubObjectType) -> bool
fn eq(&self, other: &SubObjectType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SubObjectType> for SubObjectType
impl PartialOrd<SubObjectType> for SubObjectType
source§fn partial_cmp(&self, other: &SubObjectType) -> Option<Ordering>
fn partial_cmp(&self, other: &SubObjectType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for SubObjectType
impl TryFrom<u8> for SubObjectType
impl Copy for SubObjectType
impl Eq for SubObjectType
impl StructuralEq for SubObjectType
impl StructuralPartialEq for SubObjectType
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.