pub struct Writer<T, E>where
T: AsyncWrite,
E: From<Error>,{ /* private fields */ }
Expand description
Wrapper for AsyncWrite
types
Implementations
sourceimpl<T, E> Writer<T, E>where
T: AsyncWrite,
E: 'static + From<Error>,
impl<T, E> Writer<T, E>where
T: AsyncWrite,
E: 'static + From<Error>,
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
Auto Trait Implementations
impl<T, E> !RefUnwindSafe for Writer<T, E>
impl<T, E> !Send for Writer<T, E>
impl<T, E> !Sync for Writer<T, E>
impl<T, E> Unpin for Writer<T, E>
impl<T, E> !UnwindSafe for Writer<T, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more