pub type UnitCompletion = SyncCompletion<()>;Expand description
Unit completion - for operations that return success/error without a value
Aliased Type§
pub struct UnitCompletion { /* private fields */ }Implementations§
Source§impl UnitCompletion
impl UnitCompletion
Sourcepub extern "C" fn callback(
context: *mut c_void,
success: bool,
msg: *const i8,
)
pub extern "C" fn callback( context: *mut c_void, success: bool, msg: *const i8, )
C callback for operations that return (context, success, error_msg)
This can be used directly as an FFI callback function.
The body is wrapped in catch_user_panic so that a mutex-poison
panic (or any other unexpected panic) does not unwind across the
extern "C" boundary, which would be undefined behaviour.