pub enum Allowed {
Normal(Normal),
SetupStage(SetupStage),
DataStage(DataStage),
StatusStage(StatusStage),
Isoch(Isoch),
Link(Link),
EventData(EventData),
Noop(Noop),
}
Expand description
TRBs which are allowed to be pushed to the Transfer Ring.
Variants§
Normal(Normal)
Normal TRB.
SetupStage(SetupStage)
Setup Stage TRB.
DataStage(DataStage)
Data Stage TRB.
StatusStage(StatusStage)
Status Stage TRB.
Isoch(Isoch)
Isoch TRB.
Link(Link)
Link TRB.
EventData(EventData)
Event Data TRB.
Noop(Noop)
No Op TRB.
Implementations§
source§impl Allowed
impl Allowed
sourcepub fn set_cycle_bit(&mut self) -> &mut Self
pub fn set_cycle_bit(&mut self) -> &mut Self
Sets the value of the Cycle Bit.
sourcepub fn clear_cycle_bit(&mut self) -> &mut Self
pub fn clear_cycle_bit(&mut self) -> &mut Self
Clears the value of the Cycle Bit.
source§impl Allowed
impl Allowed
sourcepub fn set_interrupt_on_completion(&mut self)
pub fn set_interrupt_on_completion(&mut self)
Sets the value of the Interrupt On Completion field.
sourcepub fn clear_interrupt_on_completion(&mut self)
pub fn clear_interrupt_on_completion(&mut self)
Clears the Interrupt On Completion bit.
sourcepub fn interrupt_on_completion(&self) -> bool
pub fn interrupt_on_completion(&self) -> bool
Returns the value of the Interrupt On Completion field.
Trait Implementations§
source§impl From<SetupStage> for Allowed
impl From<SetupStage> for Allowed
source§fn from(v: SetupStage) -> Self
fn from(v: SetupStage) -> Self
Converts to this type from the input type.
source§impl From<StatusStage> for Allowed
impl From<StatusStage> for Allowed
source§fn from(v: StatusStage) -> Self
fn from(v: StatusStage) -> Self
Converts to this type from the input type.
source§impl Ord for Allowed
impl Ord for Allowed
source§impl PartialEq<Allowed> for Allowed
impl PartialEq<Allowed> for Allowed
source§impl PartialOrd<Allowed> for Allowed
impl PartialOrd<Allowed> for Allowed
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 Allowed
impl Eq for Allowed
impl StructuralEq for Allowed
impl StructuralPartialEq for Allowed
Auto Trait Implementations§
impl RefUnwindSafe for Allowed
impl Send for Allowed
impl Sync for Allowed
impl Unpin for Allowed
impl UnwindSafe for Allowed
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