pub(crate) struct Bus {
conn: Connection,
_task: Task<()>,
socket_proxy: SocketProxy<'static>,
}Fields§
§conn: Connection§_task: Task<()>§socket_proxy: SocketProxy<'static>Implementations§
Source§impl Bus
impl Bus
pub(crate) async fn new( session_bus: &Connection, executor: &Executor<'_>, ) -> Result<Self>
fn unique_name(&self) -> &OwnedUniqueName
async fn register_root_node(&mut self) -> Result<()>
pub(crate) async fn register_interfaces( &self, node: PlatformNode, new_interfaces: InterfaceSet, ) -> Result<()>
async fn register_interface<T>(&self, path: &str, interface: T) -> Result<bool>where
T: Interface,
pub(crate) async fn unregister_interfaces( &self, adapter_id: usize, node_id: NodeId, old_interfaces: InterfaceSet, ) -> Result<()>
async fn unregister_interface<T>(&self, path: &str) -> Result<bool>where
T: Interface,
pub(crate) async fn emit_object_event( &self, adapter_id: usize, target: NodeIdOrRoot, event: ObjectEvent, ) -> Result<()>
pub(crate) async fn emit_window_event( &self, adapter_id: usize, target: NodeId, window_name: String, event: WindowEvent, ) -> Result<()>
async fn emit_event( &self, target: ObjectId, interface: &str, signal_name: &str, body: EventBodyBorrowed<'_>, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for Bus
impl !RefUnwindSafe for Bus
impl Send for Bus
impl Sync for Bus
impl Unpin for Bus
impl UnsafeUnpin for Bus
impl !UnwindSafe for Bus
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