pub struct ControlPipe<'d> { /* private fields */ }
Expand description
USB control pipe.
Trait Implementations§
source§impl<'d> ControlPipe for ControlPipe<'d>
impl<'d> ControlPipe for ControlPipe<'d>
source§fn max_packet_size(&self) -> usize
fn max_packet_size(&self) -> usize
Maximum packet size for the control pipe
source§async fn data_out(
&mut self,
buf: &mut [u8],
_first: bool,
_last: bool,
) -> Result<usize, EndpointError>
async fn data_out( &mut self, buf: &mut [u8], _first: bool, _last: bool, ) -> Result<usize, EndpointError>
Read a DATA OUT packet into
buf
in response to a control write request. Read moresource§async fn data_in(
&mut self,
data: &[u8],
_first: bool,
last: bool,
) -> Result<(), EndpointError>
async fn data_in( &mut self, data: &[u8], _first: bool, last: bool, ) -> Result<(), EndpointError>
Send a DATA IN packet with
data
in response to a control read request. Read moresource§async fn accept_set_address(&mut self, addr: u8)
async fn accept_set_address(&mut self, addr: u8)
Accept SET_ADDRESS control and change bus address. Read more
Auto Trait Implementations§
impl<'d> Freeze for ControlPipe<'d>
impl<'d> !RefUnwindSafe for ControlPipe<'d>
impl<'d> !Send for ControlPipe<'d>
impl<'d> !Sync for ControlPipe<'d>
impl<'d> Unpin for ControlPipe<'d>
impl<'d> !UnwindSafe for ControlPipe<'d>
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