Struct zbus::SignalContext [−][src]
pub struct SignalContext<'s> { /* fields omitted */ }
Expand description
A signal emission context.
For signal emission using the high-level API, you’ll need instances of this type.
See crate::InterfaceRef::signal_context
and crate::dbus_interface
documentation for details and examples of this type in use.
Implementations
pub fn new<P>(conn: &Connection, path: P) -> Result<Self> where
P: TryInto<ObjectPath<'s>>,
P::Error: Into<Error>,
pub fn new<P>(conn: &Connection, path: P) -> Result<Self> where
P: TryInto<ObjectPath<'s>>,
P::Error: Into<Error>,
Create a new signal context for the given connection and object path.
Create a new signal context for the given connection and object path.
Get a reference to the associated connection.
Get a reference to the associated object path.
Creates an owned clone of self
.
Creates an owned clone of self
.
Trait Implementations
Auto Trait Implementations
impl<'s> !RefUnwindSafe for SignalContext<'s>
impl<'s> Send for SignalContext<'s>
impl<'s> Sync for SignalContext<'s>
impl<'s> Unpin for SignalContext<'s>
impl<'s> !UnwindSafe for SignalContext<'s>
Blanket Implementations
Mutably borrows from an owned value. Read more