[][src]Struct qt_core::q_meta_object::Connection

#[repr(C)]pub struct Connection { /* fields omitted */ }

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.

C++ documentation:

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]

Assigns other to this connection and returns a reference to this connection.

Calls C++ function: QMetaObject::Connection& QMetaObject::Connection::operator=(const QMetaObject::Connection& other).

C++ documentation:

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().

C++ documentation:

Creates a Connection instance.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<Connection>>
) -> CppBox<Connection>
[src]

Constructs a copy of other.

Calls C++ function: [constructor] void QMetaObject::Connection::Connection(const QMetaObject::Connection& other).

C++ documentation:

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().

C++ documentation:

Destructor for QMetaObject::Connection.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.