rtci-interceptor-derive
Procedural macros for rtci-interceptor: #[derive(Interceptor)] marks a struct as an
interceptor and names the field holding the next one in the chain, and the #[interceptor]
attribute on an impl block generates the trait implementation, forwarding every method the
block does not define to that field.
Use
Depend on rtci-interceptor, which re-exports the macros; a crate that defines its own
interceptors needs this crate only through it. The macros' documentation, and the
interceptors in rtci-interceptor's sources, show the pattern.
The macros generate code only; they implement no protocol, and the generated code does no I/O.
Licence
Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.
This crate is part of the rtci workspace, which descends from
webrtc-rs/rtc and is developed independently;
FORK.md lists what it carries over upstream. Upstream's licence and copyright
notices are retained.