pub struct UsbBus<'a> { /* private fields */ }
Implementations§
Source§impl<'a> UsbBus<'a>
impl<'a> UsbBus<'a>
pub async fn await_disconnect(&self)
Trait Implementations§
Source§impl<'a> Bus for UsbBus<'a>
impl<'a> Bus for UsbBus<'a>
Source§fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool)
fn endpoint_set_enabled(&mut self, ep_addr: EndpointAddress, enabled: bool)
Enable or disable an endpoint.
Source§fn endpoint_set_stalled(&mut self, ep_addr: EndpointAddress, stalled: bool)
fn endpoint_set_stalled(&mut self, ep_addr: EndpointAddress, stalled: bool)
Set or clear the STALL condition for an endpoint. Read more
Source§fn endpoint_is_stalled(&mut self, ep_addr: EndpointAddress) -> bool
fn endpoint_is_stalled(&mut self, ep_addr: EndpointAddress) -> bool
Get whether the STALL condition is set for an endpoint.
Source§async fn remote_wakeup(&mut self) -> Result<(), Unsupported>
async fn remote_wakeup(&mut self) -> Result<(), Unsupported>
Initiate a remote wakeup of the host by the device. Read more
Source§fn force_reset(&mut self) -> Result<(), Unsupported>
fn force_reset(&mut self) -> Result<(), Unsupported>
Simulate a disconnect from the USB bus, causing the host to reset and re-enumerate the
device. Read more
Auto Trait Implementations§
impl<'a> Freeze for UsbBus<'a>
impl<'a> RefUnwindSafe for UsbBus<'a>
impl<'a> Send for UsbBus<'a>
impl<'a> Sync for UsbBus<'a>
impl<'a> Unpin for UsbBus<'a>
impl<'a> UnwindSafe for UsbBus<'a>
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