#[repr(C)]
pub struct Internal<T>where T: MessageAddress, <T as TryFrom<u64>>::Error: Debug,{ pub control: MessageControl, pub data: u16, pub mask_bits: u32, pub pending_bits: u32, /* private fields */ }
Expand description

The actual structure of xHCI Message Interrupt Capability.

Fields§

§control: MessageControl

Message Control.

§data: u16

Data.

§mask_bits: u32

Mask Bits.

§pending_bits: u32

Pending Bits.

Implementations§

source§

impl<T> Internal<T>where T: MessageAddress, <T as TryFrom<u64>>::Error: Debug,

source

pub fn set_addr(&mut self, a: u64)

Sets the Message Address.

Panics

This method panics if the user breaks one of the following conditions:

  • Bits 0..=1 of the address must be 0.
  • The address must fit, especially if T = u32.
source

pub fn get_addr(&self) -> u64

Returns the Message Address.

Trait Implementations§

source§

impl<T> Clone for Internal<T>where T: MessageAddress + Clone, <T as TryFrom<u64>>::Error: Debug,

source§

fn clone(&self) -> Internal<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Internal<T>where T: MessageAddress + Debug, <T as TryFrom<u64>>::Error: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T> Copy for Internal<T>where T: MessageAddress + Copy, <T as TryFrom<u64>>::Error: Debug,

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Internal<T>where T: RefUnwindSafe,

§

impl<T> Send for Internal<T>where T: Send,

§

impl<T> Sync for Internal<T>where T: Sync,

§

impl<T> Unpin for Internal<T>where T: Unpin,

§

impl<T> UnwindSafe for Internal<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.