Trait actix::io::WriteHandler [−][src]
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
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.
fn finished(&mut self, ctx: &mut Self::Context)
[src]
Called when the writer finishes.
By default this method stops actor’s Context
.