Struct xhci::ring::trb::command::SetExtendedProperty [−][src]
Set Extended Property Command TRB
Implementations
impl SetExtendedProperty
[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 SetExtendedProperty
[src]
#[must_use]pub fn new() -> Self
[src]
Creates a new Set Extended Property Command TRB.
This method sets the sets the value of the TRB Type field properly. All the other fieldds are set to 0.
impl SetExtendedProperty
[src]
pub fn set_extended_capability_identifier(&mut self, eci: u16) -> &mut Self
[src]
Sets the value of the Extended Capability Identifier field.
#[must_use]pub fn extended_capability_identifier(&self) -> u16
[src]
Returns the value of the Extended Capability Identifier field.
pub fn set_capability_parameter(&mut self, p: u8) -> &mut Self
[src]
Sets the value of the Capability Parameter field.
#[must_use]pub fn capability_parameter(&self) -> u8
[src]
Returns the value of the Capability Parameter field.
pub fn set_command_sub_type(&mut self, t: u8) -> &mut Self
[src]
Sets the value of the Command Sub Type field.
#[must_use]pub fn command_sub_type(&self) -> u8
[src]
Returns the value of the Command Sub Type field.
pub fn set_endpoint_id(&mut self, i: u8) -> &mut Self
[src]
Sets the value of the Endpoint ID field.
#[must_use]pub fn endpoint_id(&self) -> u8
[src]
Returns the value of the Endpoint ID field.
pub fn set_slot_id(&mut self, i: u8) -> &mut Self
[src]
Sets the value of the Slot ID field.
#[must_use]pub fn slot_id(&self) -> u8
[src]
Returns the value of the Slot ID field.
Trait Implementations
impl AsRef<[u32]> for SetExtendedProperty
[src]
impl Clone for SetExtendedProperty
[src]
fn clone(&self) -> SetExtendedProperty
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SetExtendedProperty
[src]
impl Debug for SetExtendedProperty
[src]
impl Default for SetExtendedProperty
[src]
impl Eq for SetExtendedProperty
[src]
impl From<SetExtendedProperty> for Allowed
[src]
fn from(v: SetExtendedProperty) -> Self
[src]
impl Hash for SetExtendedProperty
[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 SetExtendedProperty
[src]
fn cmp(&self, other: &SetExtendedProperty) -> 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<SetExtendedProperty> for SetExtendedProperty
[src]
fn eq(&self, other: &SetExtendedProperty) -> bool
[src]
fn ne(&self, other: &SetExtendedProperty) -> bool
[src]
impl PartialOrd<SetExtendedProperty> for SetExtendedProperty
[src]
fn partial_cmp(&self, other: &SetExtendedProperty) -> 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 SetExtendedProperty
[src]
impl StructuralPartialEq for SetExtendedProperty
[src]
Auto Trait Implementations
impl Send for SetExtendedProperty
impl Sync for SetExtendedProperty
impl Unpin for SetExtendedProperty
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>,