Struct cxx_qt_lib::ConnectionType
source · #[repr(transparent)]pub struct ConnectionType {
pub repr: i32,
}
Expand description
This enum describes the types of connection that can be used with signals.
Note that UniqueConnection is not supported.
Fields§
§repr: i32
Implementations§
source§impl ConnectionType
impl ConnectionType
sourcepub const AutoConnection: Self = _
pub const AutoConnection: Self = _
If the receiver lives in the thread that emits the signal, Qt::DirectConnection is used. Otherwise, Qt::QueuedConnection is used. The connection type is determined when the signal is emitted.
sourcepub const DirectConnection: Self = _
pub const DirectConnection: Self = _
The slot is invoked immediately when the signal is emitted. The slot is executed in the signalling thread.
sourcepub const QueuedConnection: Self = _
pub const QueuedConnection: Self = _
The slot is invoked when control returns to the event loop of the receiver’s thread. The slot is executed in the receiver’s thread.
sourcepub const BlockingQueuedConnection: Self = _
pub const BlockingQueuedConnection: Self = _
Same as Qt::QueuedConnection, except that the signalling thread blocks until the slot returns. This connection must not be used if the receiver lives in the signalling thread, or else the application will deadlock.
Trait Implementations§
source§impl Clone for ConnectionType
impl Clone for ConnectionType
source§impl ExternType for ConnectionType
impl ExternType for ConnectionType
source§impl PartialEq for ConnectionType
impl PartialEq for ConnectionType
source§fn eq(&self, other: &ConnectionType) -> bool
fn eq(&self, other: &ConnectionType) -> bool
self
and other
values to be equal, and is used
by ==
.