rtci-interceptor-derive
Derive and attribute macros for the interceptor traits of a sans-I/O WebRTC stack. 1 public module, 2 items at 0.5.0.
cargo add [email protected] · crates.io · docs.rs · README on GitHub· MSRV 1.89
README
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.
rtci_interceptor_derive
Derive macros for RTC Interceptor trait.
- derive
InterceptorDerive macro that marks a struct as an interceptor. - attr
interceptorAttribute macro for impl blocks to generate Protocol and Interceptor implementations.
Generated from the sources of rtci-interceptor-derive 0.5.0 at its release tag. Items made by macros and methods are on docs.rs.