Struct qt_core::q_meta_object::Connection
source · #[repr(C)]pub struct Connection { /* private fields */ }
Expand description
Represents a handle to a signal-slot connection. It can be used to disconnect that connection, or check if the connection was successful
C++ class: QMetaObject::Connection
.
Represents a handle to a signal-slot connection. It can be used to disconnect that connection, or check if the connection was successful
Implementations§
source§impl Connection
impl Connection
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<Connection>>
) -> Ref<Connection>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<Connection>> ) -> Ref<Connection>
Assigns other to this connection and returns a reference to this connection.
Calls C++ function: QMetaObject::Connection& QMetaObject::Connection::operator=(const QMetaObject::Connection& other)
.
Assigns other to this connection and returns a reference to this connection.
sourcepub unsafe fn is_valid(&self) -> bool
pub unsafe fn is_valid(&self) -> bool
Calls C++ function: bool static_cast<bool>(const QMetaObject::Connection& connection)
.
sourcepub unsafe fn new() -> CppBox<Connection>
pub unsafe fn new() -> CppBox<Connection>
Creates a Connection instance.
Calls C++ function: [constructor] void QMetaObject::Connection::Connection()
.
Creates a Connection instance.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<Connection>>
) -> CppBox<Connection>
pub unsafe fn new_copy( other: impl CastInto<Ref<Connection>> ) -> CppBox<Connection>
Constructs a copy of other.
Calls C++ function: [constructor] void QMetaObject::Connection::Connection(const QMetaObject::Connection& other)
.
Constructs a copy of other.
Trait Implementations§
source§impl CppDeletable for Connection
impl CppDeletable for Connection
source§unsafe fn delete(&self)
unsafe fn delete(&self)
Destructor for QMetaObject::Connection.
Calls C++ function: [destructor] void QMetaObject::Connection::~Connection()
.
Destructor for QMetaObject::Connection.