pub unsafe extern "C" fn transport_set_state(
    transport: *mut Transport,
    state: *mut c_void
)
Expand description

Sets the transport state.

If the state is owned by the transport and needs to be freed, use transport_set_free_func to set an appropriate hook.