[−][src]Struct qt_core::Receiver
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]
q_object: impl CastInto<Ref<QObject>>,
receiver_id: &'static CStr
) -> Self
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.
fn as_receiver(&self) -> Receiver<A>
[src]
impl<A> Clone for Receiver<A>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
Arguments: RefUnwindSafe,
impl<Arguments> !Send for Receiver<Arguments>
impl<Arguments> !Sync for Receiver<Arguments>
impl<Arguments> Unpin for Receiver<Arguments> where
Arguments: Unpin,
Arguments: Unpin,
impl<Arguments> UnwindSafe for Receiver<Arguments> where
Arguments: UnwindSafe,
Arguments: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,