pub fn remove_object<P>(&mut self, path: P) -> Result<&mut Self>
        where P: AsRef<str>,
    {
        if !self.can_handle {
            bail!(ErrorKind::NoServerName);
        }

        match self.objects.remove(path.as_ref()) {
            Some(_) => {
                // TODO: emit InterfacesRemoved signal

                Ok(self)
            },
            None => bail!(ErrorKind::NoSuchPath(path.as_ref().to_string())),
        }
    }
/// Remove an object from the server.
Remove an object from the server.
Remove an object from the server .
pub fn remove_object<P>(&mut self, path: P) -> Result<&mut Self>
        where P: AsRef<str>,
    {
        if !self.can_handle {
            bail!(ErrorKind::NoServerName);
        }
        match self.objects.remove(path.as_ref()) {
            Some(_) => {
                // TODO: emit InterfacesRemoved signal
                Ok(self)
            },
            None => bail!(ErrorKind::NoSuchPath(path.as_ref().to_string())),
        }
    }
pub fn remove_object < P > ( & mut self , path : P ) -> Result < & mut Self > where P : AsRef < str > , { if ! self . can_handle { bail ! ( ErrorKind NoServerName ) ; } match self . objects . remove ( path . as_ref ( ) ) { Some ( _ ) => { // TODO: emit InterfacesRemoved signal Ok ( self ) } , None => bail ! ( ErrorKind NoSuchPath ( path as_ref ( ) to_string ( ) ) ) , } }
Remove an object from the server.
Remove an object from the server .
&mut self
path
P