Module dart

Source
Expand description

External Jason API exposing functions that can be called via FFI and designed to be integrated into a Flutter plugin.

Re-exports§

pub use self::api::ConnectionHandle;
pub use self::api::Jason;
pub use self::api::LocalMediaTrack;
pub use self::api::MediaManagerHandle;
pub use self::api::ReconnectHandle;
pub use self::api::RemoteMediaTrack;
pub use self::api::RoomCloseReason;
pub use self::api::RoomHandle;
pub use self::err::DartError as Error;
pub use crate::media::MediaDirection;

Modules§

api
External Jason API exposing functions that can be called via FFI and designed to be integrated into a Flutter plugin.
err
Facilities for creating Dart exceptions from Rust.

Structs§

DartValueArg
DartValue marked by a Rust type.
DartValueCastError
Error of converting a DartValue to the concrete type.
UnreachableAsyncRuntime
BaseAsyncRuntime that panics on use.

Enums§

DartValue
Type-erased value that can be transferred via FFI boundaries to/from Dart.
MemoryOwner
Owner of some allocated memory.

Constants§

DART_HANDLER_PORT
Used to create [DartOpaque]s on the Rust side.

Traits§

PrimitiveEnum
Marker indicating a C-style enum which can be converted from number primitives.

Functions§

box_dart_handle
Returns a pointer to a boxed Dart_Handle created from the provided Dart_Handle.
box_foreign_value
Returns a boxed pointer to the provided DartValue.
free_boxed_dart_handle
Frees the provided ptr::NonNull pointer to a Dart_Handle.
new_frb_handler
Creates a new FrbHandler.
propagate_panic
Wraps the provided function to catch all the Rust panics and propagate them to the Dart side.
unbox_dart_handle
Returns a Dart_Handle dereferenced from the provided pointer.

Type Aliases§

FrbHandler
SimpleHandler that uses NoOpErrorListener, UnreachableAsyncRuntime and [SimpleThreadPool] with no threads.