pub struct WeakSignalSubscription(/* private fields */);Expand description
A weak subscription to a D-Bus signal.
Like SignalSubscription but hold only a weak reference to the D-Bus
connection the signal is subscribed on, i.e. maintain the subscription on
the D-Bus signal only as long as some strong reference exists on the
corresponding D-Bus connection.
When dropped, unsubscribes from signal on the connection if it still exists, 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 WeakSignalSubscription
impl WeakSignalSubscription
Sourcepub fn upgrade(self) -> Option<SignalSubscription>
pub fn upgrade(self) -> Option<SignalSubscription>
Upgrade this signal subscription to a strong one.