Skip to main content

block_server_new

Function block_server_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn block_server_new( partition_info: &PartitionInfo, callbacks: Callbacks, ) -> *mut BlockServer
Expand description

Creates a new block server. Returns nullptr on failure (e.g. if the thread to run the block server failed to start).

ยงSafety

All callbacks in callbacks must be safe.