#[repr(C, packed(1))]pub struct Endpoint {
pub endpoint_address: u8,
pub attributes: u8,
pub max_packet_size: u16,
pub interval: u8,
pub ssc: Option<SuperSpeedCmp>,
/* private fields */
}Fields§
§endpoint_address: u8§attributes: u8§max_packet_size: u16§interval: u8§ssc: Option<SuperSpeedCmp>Implementations§
Source§impl Endpoint
impl Endpoint
pub fn endpoint_type(&self) -> EndpointType
pub fn calc_actual_interval(&self, port_speed: PortSpeed) -> u8
pub fn max_streams(&self) -> Option<u8>
pub fn is_bulk_out(&self) -> bool
pub fn calculate_max_streams(&self) -> u8
pub fn is_superspeedplus(&self) -> bool
pub fn mult(&self, lec: bool) -> u8
pub fn doorbell_value_aka_dci(&self) -> u32
Trait Implementations§
impl Copy for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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