Struct cxx_qt_lib::QMetaObjectConnection
source · #[repr(C)]pub struct QMetaObjectConnection { /* private fields */ }
Expand description
Represents a handle to a signal-slot (or signal-functor) connection.
This struct is returned when a connection is made using on_SIGNAL_NAME
.
Note that when this struct is dropped the connection is disconnected.
So so keep a connection active either hold onto the struct for the duration
that the connection should be active or call release
.
Implementations§
source§impl QMetaObjectConnection
impl QMetaObjectConnection
sourcepub fn release(self)
pub fn release(self)
Release the QMetaObjectConnection without disconnecting
Trait Implementations§
source§impl Drop for QMetaObjectConnection
impl Drop for QMetaObjectConnection
source§fn drop(&mut self)
fn drop(&mut self)
Disconnect and deconstruct the QMetaObjectConnection
source§impl ExternType for QMetaObjectConnection
impl ExternType for QMetaObjectConnection
Auto Trait Implementations§
impl Freeze for QMetaObjectConnection
impl RefUnwindSafe for QMetaObjectConnection
impl Send for QMetaObjectConnection
impl Sync for QMetaObjectConnection
impl Unpin for QMetaObjectConnection
impl UnwindSafe for QMetaObjectConnection
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