Skip to main content

EndHook

Type Alias EndHook 

Source
pub type EndHook = Box<dyn FnOnce(u64, Result<(), &ServerError>) + Send>;
Expand description

Called once when a body ends, with the bytes sent and how it ended (WP-4.13’s ReadServed{bytes} and Aborted(INTERNAL) hook). A body dropped before its end reports canceled.

Aliased Type§

pub struct EndHook(/* private fields */);