pub trait AsyncWriteBuffer: DerefMut<Target = [u8]> + Unpin {
type Error;
type WriteAll<'a>: Future<Output = Result<(), Self::Error>>
where Self: 'a;
// Required methods
fn poll_alloc(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>;
fn write_all(&mut self, count: usize) -> Self::WriteAll<'_>;
// Provided method
fn alloc(&mut self) -> Alloc<'_, Self> ⓘ { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".