pub struct Writer<'dev, 'd, A, M>where
A: UsbHostAllocator<'d>,
M: RawMutex,{ /* private fields */ }Expand description
Port writer half.
Implementations§
Trait Implementations§
Source§impl<'dev, 'd, A, M> ErrorType for Writer<'dev, 'd, A, M>where
A: UsbHostAllocator<'d>,
M: RawMutex,
Available on crate feature embedded-io only.
impl<'dev, 'd, A, M> ErrorType for Writer<'dev, 'd, A, M>where
A: UsbHostAllocator<'d>,
M: RawMutex,
Available on crate feature
embedded-io only.Source§type Error = Ch34xError
type Error = Ch34xError
Error type of all the IO operations on this type.
Source§impl<'dev, 'd, A, M> Write for Writer<'dev, 'd, A, M>where
A: UsbHostAllocator<'d>,
M: RawMutex,
Available on crate feature embedded-io only.
impl<'dev, 'd, A, M> Write for Writer<'dev, 'd, A, M>where
A: UsbHostAllocator<'d>,
M: RawMutex,
Available on crate feature
embedded-io only.Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Auto Trait Implementations§
impl<'dev, 'd, A, M> !RefUnwindSafe for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> !UnwindSafe for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> Forget for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> Freeze for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> Move for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> Send for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> Sync for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> Unpin for Writer<'dev, 'd, A, M>
impl<'dev, 'd, A, M> UnsafeUnpin for Writer<'dev, 'd, A, M>where
&'dev Ch34xDevice<'d, A, M>: UnsafeUnpin,
<A as UsbHostAllocator<'d>>::Pipe<Bulk, Out>: UnsafeUnpin,
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