[−][src]Crate varlink_derive
Macro for generating modules from a varlink interface definition
It has the drawback, that most IDEs don't execute this and thus offer no code completion.
Examples:
ⓘThis example is not tested
use varlink_derive; varlink_derive::varlink!(org_example_ping, r#" interface org.example.ping method Ping(ping: string) -> (pong: string) "#); use crate::org_example_ping::VarlinkClientInterface; /* ... */
ⓘThis example is not tested
use varlink_derive; varlink_derive::varlink_file!( org_example_network, "examples/example/src/org.example.network.varlink" ); use crate::org_example_network::VarlinkClientInterface; /* ... */
Macros
varlink | Generates a module from a varlink interface definition |
varlink_file | Generates a module from a varlink interface definition file |