#[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 disconnect(&self) -> bool
pub fn disconnect(&self) -> bool
Disconnect the signal
Trait Implementations§
Source§impl Default for QMetaObjectConnection
impl Default for QMetaObjectConnection
Source§fn default() -> QMetaObjectConnection
fn default() -> QMetaObjectConnection
Returns the “default value” for a type. Read more
Source§impl Drop for QMetaObjectConnection
impl Drop for QMetaObjectConnection
Source§impl ExternType for QMetaObjectConnection
impl ExternType for QMetaObjectConnection
Source§impl From<QMetaObjectConnection> for QMetaObjectConnectionGuard
impl From<QMetaObjectConnection> for QMetaObjectConnectionGuard
Source§fn from(connection: QMetaObjectConnection) -> QMetaObjectConnectionGuard
fn from(connection: QMetaObjectConnection) -> QMetaObjectConnectionGuard
Converts to this type from the input type.
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