#[repr(transparent)]pub struct GetPortBandwidth(_);
Expand description
Get Port Bandwidth Command TRB
Implementations§
source§impl GetPortBandwidth
impl GetPortBandwidth
sourcepub fn set_port_bandwidth_context_pointer(&mut self, p: u64) -> &mut Self
pub fn set_port_bandwidth_context_pointer(&mut self, p: u64) -> &mut Self
Sets the value of the Port Bandwidth Context Pointer field.
Panics
This method panics if the p
is not 16-byte aligned.
sourcepub fn port_bandwidth_context_pointer(&self) -> u64
pub fn port_bandwidth_context_pointer(&self) -> u64
Returns the value of the Port Bandwidth Context Pointer field.
sourcepub fn set_dev_speed(&mut self, value: u8) -> &mut Self
pub fn set_dev_speed(&mut self, value: u8) -> &mut Self
Sets the value of the Dev Speed field.
sourcepub fn hub_slot_id(self) -> u8
pub fn hub_slot_id(self) -> u8
Returns the value of the Hub Slot ID field.
sourcepub fn set_hub_slot_id(&mut self, value: u8) -> &mut Self
pub fn set_hub_slot_id(&mut self, value: u8) -> &mut Self
Sets the value of the Hub Slot ID field.
Trait Implementations§
source§impl AsRef<[u32]> for GetPortBandwidth
impl AsRef<[u32]> for GetPortBandwidth
source§impl Clone for GetPortBandwidth
impl Clone for GetPortBandwidth
source§fn clone(&self) -> GetPortBandwidth
fn clone(&self) -> GetPortBandwidth
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetPortBandwidth
impl Debug for GetPortBandwidth
source§impl Default for GetPortBandwidth
impl Default for GetPortBandwidth
source§impl From<GetPortBandwidth> for [u32; 4]
impl From<GetPortBandwidth> for [u32; 4]
source§fn from(t: GetPortBandwidth) -> Self
fn from(t: GetPortBandwidth) -> Self
Converts to this type from the input type.
source§impl From<GetPortBandwidth> for Allowed
impl From<GetPortBandwidth> for Allowed
source§fn from(v: GetPortBandwidth) -> Self
fn from(v: GetPortBandwidth) -> Self
Converts to this type from the input type.
source§impl Hash for GetPortBandwidth
impl Hash for GetPortBandwidth
source§impl Ord for GetPortBandwidth
impl Ord for GetPortBandwidth
source§fn cmp(&self, other: &GetPortBandwidth) -> Ordering
fn cmp(&self, other: &GetPortBandwidth) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<GetPortBandwidth> for GetPortBandwidth
impl PartialEq<GetPortBandwidth> for GetPortBandwidth
source§fn eq(&self, other: &GetPortBandwidth) -> bool
fn eq(&self, other: &GetPortBandwidth) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GetPortBandwidth> for GetPortBandwidth
impl PartialOrd<GetPortBandwidth> for GetPortBandwidth
source§fn partial_cmp(&self, other: &GetPortBandwidth) -> Option<Ordering>
fn partial_cmp(&self, other: &GetPortBandwidth) -> Option<Ordering>
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 GetPortBandwidth
impl Eq for GetPortBandwidth
impl StructuralEq for GetPortBandwidth
impl StructuralPartialEq for GetPortBandwidth
Auto Trait Implementations§
impl RefUnwindSafe for GetPortBandwidth
impl Send for GetPortBandwidth
impl Sync for GetPortBandwidth
impl Unpin for GetPortBandwidth
impl UnwindSafe for GetPortBandwidth
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