Struct xhci::ring::trb::transfer::EventData [−][src]
Event Data TRB
Implementations
impl EventData
[src]
#[must_use]pub fn into_raw(self) -> [u32; 4]
[src]
Returns the wrapped array.
#[must_use]pub fn cycle_bit(&self) -> bool
[src]
Returns the value of the Cycle Bit.
pub fn set_cycle_bit(&mut self, b: bool) -> &mut Self
[src]
Sets the value of the Cycle Bit.
impl EventData
[src]
#[must_use]pub fn new() -> Self
[src]
Creates a new Event Data TRB.
This method sets the sets the value of the TRB Type field properly. All the other fieldds are set to 0.
impl EventData
[src]
pub fn set_interrupt_on_completion(&mut self, ioc: bool) -> &mut Self
[src]
Sets the value of the Interrupt On Completion field.
#[must_use]pub fn interrupt_on_completion(&self) -> bool
[src]
Returns the value of the Interrupt On Completion field.
impl EventData
[src]
pub fn set_event_data(&mut self, d: u64) -> &mut Self
[src]
Sets the value of the Event Data field.
#[must_use]pub fn event_data(&self) -> u64
[src]
Returns the value of the Event Data field.
pub fn set_interrupter_target(&mut self, t: u16) -> &mut Self
[src]
Sets the value of the Interrupter Target field.
#[must_use]pub fn interrupter_target(&self) -> u16
[src]
Returns the value of the Interrupter Target field.
pub fn set_evaluate_next_trb(&mut self, ent: bool) -> &mut Self
[src]
Sets the value of the Evaluate Next TRB field.
#[must_use]pub fn evaluate_next_trb(&self) -> bool
[src]
Returns the value of the Evaluate Next TRB field.
pub fn set_chain_bit(&mut self, b: bool) -> &mut Self
[src]
Sets the value of the Chain Bit field.
#[must_use]pub fn chain_bit(&self) -> bool
[src]
Returns the value of the Chain Bit field.
pub fn set_block_event_interrupt(&mut self, bei: bool) -> &mut Self
[src]
Sets the value of the Block Event Interrupt field.
#[must_use]pub fn block_event_interrupt(&self) -> bool
[src]
Returns the value of the Block Event Interrupt field.
Trait Implementations
impl AsRef<[u32]> for EventData
[src]
impl Clone for EventData
[src]
fn clone(&self) -> EventData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EventData
[src]
impl Debug for EventData
[src]
impl Default for EventData
[src]
impl Eq for EventData
[src]
impl From<EventData> for Allowed
[src]
impl Hash for EventData
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for EventData
[src]
fn cmp(&self, other: &EventData) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<EventData> for EventData
[src]
impl PartialOrd<EventData> for EventData
[src]
fn partial_cmp(&self, other: &EventData) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for EventData
[src]
impl StructuralPartialEq for EventData
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,