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.
Trait Implementations§
Source§impl Debug for SignalSubscription
impl Debug for SignalSubscription
Auto Trait Implementations§
impl Freeze for SignalSubscription
impl RefUnwindSafe for SignalSubscription
impl Send for SignalSubscription
impl Sync for SignalSubscription
impl Unpin for SignalSubscription
impl UnwindSafe for SignalSubscription
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