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, const N: usize> ErrorType for Writer<'_, M, N>where
M: RawMutex,
impl<M, const N: usize> ErrorType for Writer<'_, M, N>where
M: RawMutex,
Source§type Error = Infallible
type Error = Infallible
Error type of all the IO operations on this type.
Source§impl<'p, M, const N: usize> From<Writer<'p, M, N>> for DynamicWriter<'p>where
M: RawMutex,
impl<'p, M, const N: usize> From<Writer<'p, M, N>> for DynamicWriter<'p>where
M: RawMutex,
Source§fn from(value: Writer<'p, M, N>) -> DynamicWriter<'p>
fn from(value: Writer<'p, M, N>) -> DynamicWriter<'p>
Converts to this type from the input type.
Source§impl<M, const N: usize> Write for Writer<'_, M, N>where
M: RawMutex,
impl<M, const N: usize> Write for Writer<'_, M, N>where
M: RawMutex,
Source§async fn write(
&mut self,
buf: &[u8],
) -> Result<usize, <Writer<'_, M, N> as ErrorType>::Error>
async fn write( &mut self, buf: &[u8], ) -> Result<usize, <Writer<'_, M, N> as ErrorType>::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