#[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.