pub struct Channel<'d, T: SealedHostInstance, E, D> { /* private fields */ }Expand description
USB endpoint.
Trait Implementations§
Source§impl<'d, T: SealedHostInstance, E, D> Drop for Channel<'d, T, E, D>
impl<'d, T: SealedHostInstance, E, D> Drop for Channel<'d, T, E, D>
Source§impl<'d, T: SealedHostInstance, E, D> Format for Channel<'d, T, E, D>where
PhantomData<(&'d mut T, E, D)>: Format,
EndpointBuffer<T>: Format,
TimeoutConfig: Format,
Option<u64>: Format,
impl<'d, T: SealedHostInstance, E, D> Format for Channel<'d, T, E, D>where
PhantomData<(&'d mut T, E, D)>: Format,
EndpointBuffer<T>: Format,
TimeoutConfig: Format,
Option<u64>: Format,
Source§impl<'d, T: SealedHostInstance, E: Type, D: Direction> UsbPipe<E, D> for Channel<'d, T, E, D>
impl<'d, T: SealedHostInstance, E: Type, D: Direction> UsbPipe<E, D> for Channel<'d, T, E, D>
Source§async fn control_in(
&mut self,
setup: &[u8; 8],
buf: &mut [u8],
) -> Result<usize, PipeError>
async fn control_in( &mut self, setup: &[u8; 8], buf: &mut [u8], ) -> Result<usize, PipeError>
Send IN control request. Read more
Source§async fn control_out(
&mut self,
setup: &[u8; 8],
buf: &[u8],
) -> Result<(), PipeError>
async fn control_out( &mut self, setup: &[u8; 8], buf: &[u8], ) -> Result<(), PipeError>
Send OUT control request
Source§async fn request_in(&mut self, buf: &mut [u8]) -> Result<usize, PipeError>where
D: IsIn,
async fn request_in(&mut self, buf: &mut [u8]) -> Result<usize, PipeError>where
D: IsIn,
Send IN request of type other from control
For interrupt pipes this will return the result of the next successful interrupt poll
Source§async fn request_out(
&mut self,
buf: &[u8],
ensure_transaction_end: bool,
) -> Result<(), PipeError>where
D: IsOut,
async fn request_out(
&mut self,
buf: &[u8],
ensure_transaction_end: bool,
) -> Result<(), PipeError>where
D: IsOut,
Send OUT request of type other from control
ensure_transaction_end: Send a zero length packet at the end of transaction if last packet is of max size.
Source§fn set_timeout(&mut self, timeout: TimeoutConfig)
fn set_timeout(&mut self, timeout: TimeoutConfig)
Configure the timeouts of this pipe.
Source§fn reset_data_toggle(&mut self)
fn reset_data_toggle(&mut self)
Reset the host-side data toggle on this pipe to DATA0. Read more
Auto Trait Implementations§
impl<'d, T, E, D> !UnwindSafe for Channel<'d, T, E, D>
impl<'d, T, E, D> Freeze for Channel<'d, T, E, D>
impl<'d, T, E, D> RefUnwindSafe for Channel<'d, T, E, D>
impl<'d, T, E, D> Send for Channel<'d, T, E, D>
impl<'d, T, E, D> Sync for Channel<'d, T, E, D>
impl<'d, T, E, D> Unpin for Channel<'d, T, E, D>
impl<'d, T, E, D> UnsafeUnpin for Channel<'d, T, E, 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