pub trait FifoWritable<W: FifoEntry>where
Self: Sized,{
// Required method
fn write<B: ?Sized + FifoWriteBuffer<W>>(
&self,
cx: &mut Context<'_>,
entries: &B,
) -> Poll<Result<usize, Status>>;
// Provided method
fn write_entries<'a, B: ?Sized + FifoWriteBuffer<W>>(
&'a self,
entries: &'a B,
) -> WriteEntries<'a, Self, B, W> ⓘ { ... }
}
Expand description
Identifies that the object may be used to write entries into a FIFO.
Required Methods§
Provided Methods§
Sourcefn write_entries<'a, B: ?Sized + FifoWriteBuffer<W>>(
&'a self,
entries: &'a B,
) -> WriteEntries<'a, Self, B, W> ⓘ
fn write_entries<'a, B: ?Sized + FifoWriteBuffer<W>>( &'a self, entries: &'a B, ) -> WriteEntries<'a, Self, B, W> ⓘ
Creates a future that transmits entries to be written.
The returned future will return after an entry has been received on this fifo. The future will resolve to the fifo once all elements have been transmitted.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.