Macros§
- debug_
assert_ not_ null - Debug-only assertion that a raw pointer is not null.
- ok_or
- recv_
timeout - Receive from an
mpscreceiver with a timeout, mapping each outcome to a value. - recv_
timeout_ ms - Convenience wrapper over
recv_timeout!that takes the timeout in milliseconds. - recv_
timeout_ ms_ or_ continue - Convenience wrapper over
recv_timeout_or_continue!that takes milliseconds. - recv_
timeout_ or_ continue - Receive from an
mpscreceiver with a timeout; on timeout,continuethe loop. - some_or
Structs§
- Exec
OnDrop - RAII guard that runs a closure when dropped.
- Once
Init - Signal
- Sync
Unsafe Cell UnsafeCellthat isSyncifT: Sync.
Functions§
- into_
cstring_ ptr - Return a malloc’ed C string (caller must free with
from_raw), orNULLifNone. - reclaim_
cstring - Reclaim (free) a heap-allocated C string previously created with
CString::into_raw, dropping it at the end of this function.