pub struct Bus<'d, V: VbusDetect> { /* private fields */ }Expand description
USB bus.
Trait Implementations§
Source§impl<'d, V: VbusDetect> Bus for Bus<'d, V>
impl<'d, V: VbusDetect> Bus for Bus<'d, V>
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§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§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<'d, V> Freeze for Bus<'d, V>where
V: Freeze,
impl<'d, V> RefUnwindSafe for Bus<'d, V>where
V: RefUnwindSafe,
impl<'d, V> Send for Bus<'d, V>where
V: Send,
impl<'d, V> Sync for Bus<'d, V>where
V: Sync,
impl<'d, V> Unpin for Bus<'d, V>where
V: Unpin,
impl<'d, V> UnsafeUnpin for Bus<'d, V>where
V: UnsafeUnpin,
impl<'d, V> UnwindSafe for Bus<'d, V>where
V: UnwindSafe,
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