[][src]Trait actix::io::WriteHandler

pub trait WriteHandler<E> where
    Self: Actor,
    Self::Context: ActorContext
{ pub fn error(&mut self, err: E, ctx: &mut Self::Context) -> Running { ... }
pub fn finished(&mut self, ctx: &mut Self::Context) { ... } }

A helper trait for write handling.

WriteHandler is a helper for AsyncWrite types. Implementation of this trait is required for Writer and FramedWrite support.

Provided methods

pub fn error(&mut self, err: E, ctx: &mut Self::Context) -> Running[src]

Called when the writer emits error.

If this method returns ErrorAction::Continue writer processing continues otherwise stream processing stops.

pub fn finished(&mut self, ctx: &mut Self::Context)[src]

Called when the writer finishes.

By default this method stops actor's Context.

Loading content...

Implementors

Loading content...