pub struct EndpointControl { /* private fields */ }Implementations§
Source§impl EndpointControl
impl EndpointControl
pub async fn control_in( &mut self, param: ControlSetup, buff: &mut [u8], ) -> Result<usize, TransferError>
pub async fn control_out( &mut self, param: ControlSetup, buff: &[u8], ) -> Result<usize, TransferError>
pub async fn set_configuration( &mut self, configuration_value: u8, ) -> Result<(), TransferError>
pub async fn get_descriptor( &mut self, desc_type: DescriptorType, desc_index: u8, language_id: u16, buff: &mut [u8], ) -> Result<(), TransferError>
pub async fn get_device_descriptor( &mut self, ) -> Result<DeviceDescriptor, USBError>
pub async fn get_configuration(&mut self) -> Result<u8, TransferError>
pub async fn get_configuration_descriptor( &mut self, index: u8, ) -> Result<ConfigurationDescriptor, USBError>
Auto Trait Implementations§
impl Freeze for EndpointControl
impl !RefUnwindSafe for EndpointControl
impl Send for EndpointControl
impl !Sync for EndpointControl
impl Unpin for EndpointControl
impl !UnwindSafe for EndpointControl
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