Module medea_jason::platform::utils
source · Expand description
Multiplatform Dart runtime specific utility structs and functions.
Modules
- Functionality for converting Rust closures into callbacks that can be passed to Dart and called by Dart.
- Proxy for a Dart Completer.
- Functionality for calling
Dart DL API
from Rust. - Rust-side representation of a Dart
Future
. - Functionality for calling Dart closures from Rust.
- Wrapper around
Dart_Handle
managing lifetimes of aDart_PersistentHandle
. - Rust side representation of a Dart side
List
. - Rust side representation of a Dart side
Map
.
Structs
- Dart Future which can be resolved from Rust.
- Dart closure that can be called from Rust.
Traits
- Extension for the
ptr::NonNull
for unboxing it to the underlying value.
Functions
- Constructs a Rust
String
from the provided raw C string. - Converts the provided C-string received from Dart into a Rust
String
. - Calls Dart to release memory allocated for the provided native string.
- Returns
IceConnectionState
based on the provided enum index. - Returns
PeerConnectionState
based on the provided enum index. - Leaks the given
String
returning a raw C string that can be passed through FFI boundaries.