Name Description Size
factory.rs 5047
leaves.rs 27257
lib.rs Contains functionality for dispatching methods on a D-Bus "server". # Example ```rust,no_run use dbus_tree::Factory; use dbus::ffidisp::Connection; let f = 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().append1("Thanks!"))) } ).out_arg("s")) )); let c = Connection::new_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. 1296
methodtype.rs 8577
objectpath.rs 29139
utils.rs 3472