Function nbd::server::handshake

source ·
pub fn handshake<IO: Write + Read, Data, F: FnOnce(&str) -> Result<Export<Data>>>(
    c: IO,
    exports: F
) -> Result<Data>
Expand description

Passes the requested export name to the provided callback to get the requested export