pub fn new<N>(conn: Rc<Connection>, name: N) -> Result<Self>
        where N: ToString,
    {
        let name = name.to_string();
        conn.request_name(&name, DO_NOT_QUEUE)?;

        // TODO: Add match for the server.
        // TODO: add root object
        // TODO: add ObjectManager interface

        Ok(Server {
            conn: conn,
            name: name,
            can_handle: true,

            objects: BTreeMap::new(),
            signals: SignalHandlerMap::new(),
            namespace_signals: SignalHandlerMap::new(),
        })
    }
/// Create a new `Server` to handle method calls from the bus.
Create a new `Server` to handle method calls from the bus.
Create a new ` Server ` to handle method calls from the bus .
pub fn new<N>(conn: Rc<Connection>, name: N) -> Result<Self>
        where N: ToString,
    {
        let name = name.to_string();
        conn.request_name(&name, DO_NOT_QUEUE)?;
        // TODO: Add match for the server.
        // TODO: add root object
        // TODO: add ObjectManager interface
        Ok(Server {
            conn: conn,
            name: name,
            can_handle: true,
            objects: BTreeMap::new(),
            signals: SignalHandlerMap::new(),
            namespace_signals: SignalHandlerMap::new(),
        })
    }
pub fn new < N > ( conn : Rc < Connection > , name : N ) -> Result < Self > where N : ToString , { let name = name . to_string ( ) ; conn . request_name ( & name , DO_NOT_QUEUE ) ? ; // TODO: Add match for the server. // TODO: add root object // TODO: add ObjectManager interface Ok ( Server { conn : conn , name : name , can_handle : true , objects : BTreeMap :: new ( ) , signals : SignalHandlerMap :: new ( ) , namespace_signals : SignalHandlerMap :: new ( ) , } ) }
Create a new `Server` to handle method calls from the bus.
Create a new ` Server ` to handle method calls from the bus .
conn
Rc<Connection>
name
N