pub struct LineOutStream<'d, D: Driver<'d>> { /* private fields */ }Expand description
Line out stream (host to device, isochronous OUT endpoint).
Implementations§
Source§impl<'d, D: Driver<'d>> LineOutStream<'d, D>
impl<'d, D: Driver<'d>> LineOutStream<'d, D>
Sourcepub async fn read_packet(
&mut self,
data: &mut [u8],
) -> Result<usize, EndpointError>
pub async fn read_packet( &mut self, data: &mut [u8], ) -> Result<usize, EndpointError>
Reads one audio packet from the host. Returns the number of bytes received.
Sourcepub async fn wait_connection(&mut self)
pub async fn wait_connection(&mut self)
Waits for the host to select the streaming alternate setting.
Sourcepub fn endpoint_index(&self) -> usize
pub fn endpoint_index(&self) -> usize
The isochronous OUT endpoint’s index.
Auto Trait Implementations§
impl<'d, D> Forget for LineOutStream<'d, D>
impl<'d, D> Freeze for LineOutStream<'d, D>
impl<'d, D> Move for LineOutStream<'d, D>
impl<'d, D> RefUnwindSafe for LineOutStream<'d, D>
impl<'d, D> Send for LineOutStream<'d, D>
impl<'d, D> Sync for LineOutStream<'d, D>
impl<'d, D> Unpin for LineOutStream<'d, D>
impl<'d, D> UnsafeUnpin for LineOutStream<'d, D>
impl<'d, D> UnwindSafe for LineOutStream<'d, 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