Type Alias futures_lite::io::BoxedWriter

source ·
pub type BoxedWriter = Pin<Box<dyn AsyncWrite + Send + 'static>>;
Expand description

Type alias for Pin<Box<dyn AsyncWrite + Send + 'static>>.

Examples

use futures_lite::io::AsyncWriteExt;

let writer = Vec::<u8>::new().boxed_writer();

Aliased Type§

struct BoxedWriter { /* private fields */ }

Trait Implementations§

1.33.0 · source§

impl<P> Deref for Pin<P>where P: Deref,

§

type Target = <P as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<P as Deref>::Target

Dereferences the value.