RpcSendBytesCallback

Type Alias RpcSendBytesCallback 

Source
pub type RpcSendBytesCallback = Option<unsafe extern "C" fn(context: *mut c_void, bytes: *mut u8, bytes_len: usize)>;
Expand description

Callback to send to client any data (e.g. response to command)

Aliased Type§

pub enum RpcSendBytesCallback {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut u8, usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut u8, usize))

Some value of type T.