#[non_exhaustive]pub struct EndpointInfo {
pub addr: EndpointAddress,
pub ep_type: EndpointType,
pub max_packet_size: u16,
pub interval: u8,
pub max_burst: u8,
pub additional_transactions: u8,
}Expand description
Information for an endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.addr: EndpointAddressEndpoint’s address.
ep_type: EndpointTypeEndpoint’s type.
max_packet_size: u16Max packet size per transaction, in bytes (0..=1024).
interval: u8Polling interval (bInterval).
max_burst: u8SuperSpeed bMaxBurst: the endpoint bursts up to max_burst + 1 packets. 0 below
SuperSpeed.
additional_transactions: u8High-speed additional transaction opportunities per microframe (wMaxPacketSize bits
12..11, 0..=2) for isochronous and interrupt endpoints. 0 otherwise.
Implementations§
Source§impl EndpointInfo
impl EndpointInfo
Sourcepub const fn new(
addr: EndpointAddress,
ep_type: EndpointType,
max_packet_size: u16,
interval: u8,
) -> Self
pub const fn new( addr: EndpointAddress, ep_type: EndpointType, max_packet_size: u16, interval: u8, ) -> Self
An endpoint with max_burst and additional_transactions 0.
Trait Implementations§
Source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
impl Copy for EndpointInfo
Source§impl Debug for EndpointInfo
impl Debug for EndpointInfo
impl Eq for EndpointInfo
Source§impl Format for EndpointInfo
impl Format for EndpointInfo
Source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Forget for EndpointInfo
impl Freeze for EndpointInfo
impl Move for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnsafeUnpin for EndpointInfo
impl UnwindSafe for EndpointInfo
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