pub struct Writer<T: AsyncWrite, E: From<Error>> { /* private fields */ }
Expand description
Wrapper for AsyncWrite
types
Implementations§
source§impl<T: AsyncWrite, E: From<Error> + 'static> Writer<T, E>
impl<T: AsyncWrite, E: From<Error> + 'static> Writer<T, E>
pub fn new<A, C>(io: T, ctx: &mut C) -> Writer<T, E>where
A: Actor<Context = C> + WriteHandler<E>,
C: AsyncContext<A>,
T: 'static,
sourcepub fn set_buffer_capacity(&mut self, low_watermark: usize, high_watermark: usize)
pub fn set_buffer_capacity(&mut self, low_watermark: usize, high_watermark: usize)
Set write buffer capacity
sourcepub fn handle(&self) -> SpawnHandle
pub fn handle(&self) -> SpawnHandle
SpawnHandle
for this writer