PostNagleFnTy

Trait PostNagleFnTy 

Source
pub trait PostNagleFnTy:
    Fn(u64, Bytes) -> Bytes
    + Send
    + Sync
    + 'static { }
Available on crate features clients or servers only.
Expand description

A function type that can be used to convert data right before sending it out.

This is useful when we have an encrypted stream that needs to be encrypted before it goes out to the client.

Implementors§

Source§

impl<FnTy: Fn(u64, Bytes) -> Bytes + Send + Sync + 'static> PostNagleFnTy for FnTy