Struct xhci::ring::trb::Link[][src]

#[repr(transparent)]pub struct Link(_);

Link TRB

Implementations

impl Link[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 Link[src]

#[must_use]pub fn new() -> Self[src]

Creates a new Link TRB.

This method sets the sets the value of the TRB Type field properly. All the other fieldds are set to 0.

impl Link[src]

pub fn set_ring_segment_pointer(&mut self, p: u64) -> &mut Self[src]

Sets the value of the Ring Segment Pointer field.

Panics

This method panics if p is not 16-byte aligned.

#[must_use]pub fn ring_segment_pointer(&self) -> u64[src]

Returns the value of the Ring Segment Pointer field.

pub fn set_interrupter_target(&mut self, t: u32) -> &mut Self[src]

Sets the value of the Interrupter Target field.

#[must_use]pub fn interrupter_target(&self) -> u32[src]

Returns the value of the Interrupter Target field.

pub fn set_toggle_cycle(&mut self, c: bool) -> &mut Self[src]

Sets the value of the Toggle Cycle field.

#[must_use]pub fn toggle_cycle(&self) -> bool[src]

Returns the value of the Toggle Cycle 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_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.

Trait Implementations

impl AsRef<[u32]> for Link[src]

impl Clone for Link[src]

impl Copy for Link[src]

impl Debug for Link[src]

impl Default for Link[src]

impl Eq for Link[src]

impl From<Link> for Allowed[src]

impl From<Link> for Allowed[src]

impl Hash for Link[src]

impl Ord for Link[src]

impl PartialEq<Link> for Link[src]

impl PartialOrd<Link> for Link[src]

impl StructuralEq for Link[src]

impl StructuralPartialEq for Link[src]

Auto Trait Implementations

impl Send for Link

impl Sync for Link

impl Unpin for Link

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.