#[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: ConnectionType
pub const AutoConnection: ConnectionType
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: ConnectionType
pub const DirectConnection: ConnectionType
The slot is invoked immediately when the signal is emitted. The slot is executed in the signalling thread.
Sourcepub const QueuedConnection: ConnectionType
pub const QueuedConnection: ConnectionType
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: ConnectionType
pub const BlockingQueuedConnection: ConnectionType
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§fn clone(&self) -> ConnectionType
fn clone(&self) -> ConnectionType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more