[][src]Function nbd_async::serve_nbd

pub async fn serve_nbd<B, C>(block_device: B, client: C) -> Result<()> where
    B: Unpin + BlockDevice,
    C: AsyncRead + AsyncWrite + Unpin

Serve a block device using a read/write client.