Expand description
Utility functions and types.
Structs§
- Tokio
Runtime tokio
- An
AsyncRuntime
implementation backed by Tokio.
Enums§
- Timeout
- Specifies a timeout for a Kafka operation.
Traits§
- Async
Runtime - An abstraction over asynchronous runtimes.
- Into
Opaque - Converts Rust data to and from raw pointers.
Functions§
- cstr_
to_ ⚠owned - Converts a C string into a
String
. - current_
time_ millis - Returns the current time in milliseconds since the Unix epoch.
- get_
rdkafka_ version - Returns a tuple representing the version of
librdkafka
in hexadecimal and string format. - millis_
to_ epoch - Converts the given time to the number of milliseconds since the Unix epoch.
Type Aliases§
- Default
Runtime - The default
AsyncRuntime
used when one is not explicitly specified.