Expand description
§medea-macro
Internal macros for Medea media server project.
DO NOT use this crate directly. It’s for internal use by Medea crates only.
§License
Copyright © 2019-2023 Instrumentisto Team, https://github.com/instrumentisto
This software is subject to the terms of the Blue Oak Model License 1.0.0. If a copy of the BlueOak-1.0.0 license was not distributed with this file, You can obtain one at https://blueoakcouncil.org/license/1.0.0.
Attribute Macros§
- dart_
bridge - Generates code for
extern
Dart functions registration and calling. - dispatchable
- Generates a
*Handler
trait and dispatching function for some event, represented asenum
. - enum_
delegate - Delegates function calls to enum variants field. Variants are expected to have only one field.
- watchers
- Generates
ComponentState
implementation on providedimpl
.
Derive Macros§
- Caused
- Generate implementation of
Caused
trait for errors represented as enum.