pub struct SignalSubscription(/* private fields */);Expand description
A strong subscription to a D-Bus signal.
Keep a reference to a D-Bus connection to maintain a subscription on a D-Bus signal even if the connection has no other strong reference.
When dropped, unsubscribes from signal on the connection, and then drop the reference on the connection. If no other strong reference on the connection exists the connection is closed and destroyed.
Implementations§
Source§impl SignalSubscription
impl SignalSubscription
Sourcepub fn downgrade(self) -> WeakSignalSubscription
pub fn downgrade(self) -> WeakSignalSubscription
Downgrade this signal subscription to a weak one.