[][src]Struct qt_core::Receiver

pub struct Receiver<Arguments> { /* fields omitted */ }

Reference to a particular signal or slot of a particular object.

A Receiver can be used as the receiving side of a Qt signal connection. The Arguments generic argument specifies argument types of this signal or slot.

Methods

impl<A> Receiver<A>[src]

pub unsafe fn new(
    q_object: impl CastInto<Ref<QObject>>,
    receiver_id: &'static CStr
) -> Self
[src]

Creates a Receiver than references a signal or a slot of q_object identified by receiver_id.

This function should not be used manually. It's normally called from functions generated by ritual. receiver_id is the ID returned by Qt's SIGNAL and SLOT C++ macros.

Safety

q_object must contain a valid pointer to a QObject-based object. The object must outlive the created Receiver object.

Trait Implementations

impl<A> AsReceiver for Receiver<A>[src]

type Arguments = A

Argument types expected by this receiver.

impl<A> Clone for Receiver<A>[src]

impl<A> Copy for Receiver<A>[src]

impl<A> Debug for Receiver<A>[src]

Auto Trait Implementations

impl<Arguments> RefUnwindSafe for Receiver<Arguments> where
    Arguments: RefUnwindSafe

impl<Arguments> !Send for Receiver<Arguments>

impl<Arguments> !Sync for Receiver<Arguments>

impl<Arguments> Unpin for Receiver<Arguments> where
    Arguments: Unpin

impl<Arguments> UnwindSafe for Receiver<Arguments> where
    Arguments: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.