Function gain_lep::repl_default [−][src]
pub async fn repl_default<'a, DefaultFn: Fn() -> Vec<u8>>(
conn: RecvWriteStream,
domain: Domain<'a>,
state: State,
default_reply: DefaultFn
) -> (Domain<'a>, State)
Expand description
Read, evaluate and print in a loop.
The default reply function is invoked when an empty line is entered.