pub(crate) struct Node {
path: OwnedObjectPath,
children: HashMap<String, Node>,
interfaces: HashMap<InterfaceName<'static>, ArcInterface>,
}Fields§
§path: OwnedObjectPath§children: HashMap<String, Node>§interfaces: HashMap<InterfaceName<'static>, ArcInterface>Implementations§
Source§impl Node
impl Node
pub(crate) fn new(path: OwnedObjectPath) -> Self
pub(crate) fn get_child(&self, path: &ObjectPath<'_>) -> Option<&Node>
Sourcepub(super) fn get_child_mut(
&mut self,
path: &ObjectPath<'_>,
create: bool,
) -> (Option<&mut Node>, Option<ObjectPath<'_>>)
pub(super) fn get_child_mut( &mut self, path: &ObjectPath<'_>, create: bool, ) -> (Option<&mut Node>, Option<ObjectPath<'_>>)
Get the child Node at path. Optionally create one if it doesn’t exist.
This also returns the path of the parent node that implements ObjectManager (if any). If multiple parents implement it (they shouldn’t), then the closest one is returned.
pub(crate) fn interface_lock( &self, interface_name: InterfaceName<'_>, ) -> Option<ArcInterface>
pub(super) fn remove_interface( &mut self, interface_name: InterfaceName<'static>, ) -> bool
pub(super) fn is_empty(&self) -> bool
pub(super) fn remove_node(&mut self, node: &str) -> bool
pub(super) fn add_arc_interface( &mut self, name: InterfaceName<'static>, arc_iface: ArcInterface, ) -> bool
fn add_interface<I>(&mut self, iface: I) -> boolwhere
I: Interface,
async fn introspect_to_writer<W: Write + Send>(&self, writer: &mut W)
pub(crate) async fn introspect(&self) -> String
pub(crate) async fn get_managed_objects( &self, object_server: &ObjectServer, connection: &Connection, ) -> Result<ManagedObjects>
pub(super) async fn get_properties( &self, object_server: &ObjectServer, connection: &Connection, interface_name: InterfaceName<'_>, ) -> Result<HashMap<String, OwnedValue>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl !RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more