Coder Social home page Coder Social logo

Support properties about dbus-macros-rs HOT 5 CLOSED

zeenix avatar zeenix commented on July 16, 2024
Support properties

from dbus-macros-rs.

Comments (5)

zeenix avatar zeenix commented on July 16, 2024

I was looking at adding properties support to dbus-macros and saw these 'variables' support in server macros. What's that about and has it anything to do with properties? @antoyo ?

My idea for properties currently is:

 dbus_class!("com.dbus.test", class Hello (variable: i32) {
+    prop1: i32
+    prop2: String
+
     fn hello(&this) -> String {
         "Hello!"
     }

Better ideas? Don't say proc_macros. :)

from dbus-macros-rs.

antoyo avatar antoyo commented on July 16, 2024

No, these variables are used to keep a state in the server.
Look at this in the server example.

I believe you need to look at properties.

from dbus-macros-rs.

zeenix avatar zeenix commented on July 16, 2024

@antoyo Thanks. I'm just wondering what would be a nice way to consolidate these variables but I guess we can keep them separate.

from dbus-macros-rs.

zeenix avatar zeenix commented on July 16, 2024

This crate is no longer maintained or developed and is dropped in favor of zbus that provides much better API and has macros.

from dbus-macros-rs.

zeenix avatar zeenix commented on July 16, 2024

I made a typo in my previous comment. The correct URL is https://crates.io/crates/zbus

from dbus-macros-rs.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.