#[repr(transparent)]pub struct DeviceNotification(_);
Expand description
Device Notification Event TRB
Implementations§
source§impl DeviceNotification
impl DeviceNotification
sourcepub fn completion_code(&self) -> Result<CompletionCode, u8>
pub fn completion_code(&self) -> Result<CompletionCode, u8>
source§impl DeviceNotification
impl DeviceNotification
sourcepub fn notification_type(self) -> u8
pub fn notification_type(self) -> u8
Returns the value of the Notification Type field.
sourcepub fn device_notification_data(&self) -> u64
pub fn device_notification_data(&self) -> u64
Returns the value of the Device Notification Data field.
Trait Implementations§
source§impl AsRef<[u32]> for DeviceNotification
impl AsRef<[u32]> for DeviceNotification
source§impl Clone for DeviceNotification
impl Clone for DeviceNotification
source§fn clone(&self) -> DeviceNotification
fn clone(&self) -> DeviceNotification
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 DeviceNotification
impl Debug for DeviceNotification
source§impl Default for DeviceNotification
impl Default for DeviceNotification
source§impl From<DeviceNotification> for [u32; 4]
impl From<DeviceNotification> for [u32; 4]
source§fn from(t: DeviceNotification) -> Self
fn from(t: DeviceNotification) -> Self
Converts to this type from the input type.
source§impl From<DeviceNotification> for Allowed
impl From<DeviceNotification> for Allowed
source§fn from(v: DeviceNotification) -> Self
fn from(v: DeviceNotification) -> Self
Converts to this type from the input type.
source§impl Hash for DeviceNotification
impl Hash for DeviceNotification
source§impl Ord for DeviceNotification
impl Ord for DeviceNotification
source§fn cmp(&self, other: &DeviceNotification) -> Ordering
fn cmp(&self, other: &DeviceNotification) -> 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<DeviceNotification> for DeviceNotification
impl PartialEq<DeviceNotification> for DeviceNotification
source§fn eq(&self, other: &DeviceNotification) -> bool
fn eq(&self, other: &DeviceNotification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DeviceNotification> for DeviceNotification
impl PartialOrd<DeviceNotification> for DeviceNotification
source§fn partial_cmp(&self, other: &DeviceNotification) -> Option<Ordering>
fn partial_cmp(&self, other: &DeviceNotification) -> 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 moreimpl Copy for DeviceNotification
impl Eq for DeviceNotification
impl StructuralEq for DeviceNotification
impl StructuralPartialEq for DeviceNotification
Auto Trait Implementations§
impl RefUnwindSafe for DeviceNotification
impl Send for DeviceNotification
impl Sync for DeviceNotification
impl Unpin for DeviceNotification
impl UnwindSafe for DeviceNotification
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