PreNagleFnTy

Trait PreNagleFnTy 

Source
pub trait PreNagleFnTy:
    Fn(u64, &mut BytesMut)
    + Send
    + Sync
    + 'static { }
Available on crate features clients or servers only.
Expand description

A function type that can be used to convert before passing onto nagle.

This is useful when we have an encrypted stream that needs to be decrypted, before we end up applying any NAGLE, or other splitting logic to the stream.

Implementors§

Source§

impl<FnTy: Fn(u64, &mut BytesMut) + Send + Sync + 'static> PreNagleFnTy for FnTy