[−][src]Struct qt_core::q_meta_object::Connection
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
Methods
impl Connection
[src]
pub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<Connection>>
) -> Ref<Connection>
[src]
&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.
pub unsafe fn is_valid(&self) -> bool
[src]
Calls C++ function: bool static_cast<bool>(const QMetaObject::Connection& connection)
.
pub unsafe fn new() -> CppBox<Connection>
[src]
Creates a Connection instance.
Calls C++ function: [constructor] void QMetaObject::Connection::Connection()
.
Creates a Connection instance.
pub unsafe fn new_copy(
other: impl CastInto<Ref<Connection>>
) -> CppBox<Connection>
[src]
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
impl CppDeletable for Connection
[src]
unsafe fn delete(&self)
[src]
Destructor for QMetaObject::Connection.
Calls C++ function: [destructor] void QMetaObject::Connection::~Connection()
.
Destructor for QMetaObject::Connection.
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,