pub struct Writer<'p, M, const N: usize>where
M: RawMutex,{ /* private fields */ }
Expand description
Write-only access to a Pipe
.
Implementations§
Source§impl<'p, M, const N: usize> Writer<'p, M, N>where
M: RawMutex,
impl<'p, M, const N: usize> Writer<'p, M, N>where
M: RawMutex,
Sourcepub fn write<'a>(&'a self, buf: &'a [u8]) -> WriteFuture<'a, M, N> ⓘ
pub fn write<'a>(&'a self, buf: &'a [u8]) -> WriteFuture<'a, M, N> ⓘ
Write some bytes to the pipe.
See Pipe::write()
Trait Implementations§
Source§impl<M: RawMutex, const N: usize> ErrorType for Writer<'_, M, N>
impl<M: RawMutex, const N: usize> ErrorType for Writer<'_, M, N>
Source§type Error = Infallible
type Error = Infallible
Error type of all the IO operations on this type.
Source§impl<M: RawMutex, const N: usize> Write for Writer<'_, M, N>
impl<M: RawMutex, const N: usize> Write for Writer<'_, M, N>
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
impl<'p, M, const N: usize> Copy for Writer<'p, M, N>where
M: RawMutex,
Auto Trait Implementations§
impl<'p, M, const N: usize> Freeze for Writer<'p, M, N>
impl<'p, M, const N: usize> !RefUnwindSafe for Writer<'p, M, N>
impl<'p, M, const N: usize> Send for Writer<'p, M, N>where
M: Sync,
impl<'p, M, const N: usize> Sync for Writer<'p, M, N>where
M: Sync,
impl<'p, M, const N: usize> Unpin for Writer<'p, M, N>
impl<'p, M, const N: usize> !UnwindSafe for Writer<'p, M, N>
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