Name Description Size
factory.rs 5033
leaves.rs 26518
methodtype.rs 11333
mod.rs Contains functionality for dispatching methods on a D-Bus "server". # Example ```rust,no_run use dbus::{tree, Connection, BusType}; let f = tree::Factory::new_fn::<()>(); /* Add a method returning "Thanks!" on interface "com.example.dbus.rs" on object path "/example". */ let t = f.tree(()).add(f.object_path("/example", ()).introspectable() .add(f.interface("com.example.dbus.rs", ()) .add_m(f.method("CallMe", (), |m| { Ok(vec!(m.msg.method_return().append("Thanks!"))) } ).out_arg("s")) )); let c = Connection::get_private(BusType::Session).unwrap(); t.set_registered(&c, true).unwrap(); c.add_handler(t); /* Run forever */ loop { c.incoming(1000).next(); } ``` See `examples/server.rs` and `examples/adv_server.rs` for more thorough examples. 1282
objectpath.rs 22422
utils.rs 3465