Function scratchstack_wrapper_aws_c_common::aws_bus_send
source · pub unsafe extern "C" fn aws_bus_send(
bus: *mut aws_bus,
address: u64,
payload: *mut c_void,
destructor: Option<unsafe extern "C" fn(arg1: *mut c_void)>
) -> c_int
Expand description
Sends a message to any listeners. payload will live until delivered, and then the destructor (if provided) will be called. Note that anything payload references must also live at least until it is destroyed. Will return AWS_OP_ERR if the bus is closing/has been closed