pub struct Receiver<Arguments> { /* private fields */ }
Expand description
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.
Implementations§
source§impl<A> Receiver<A>
impl<A> Receiver<A>
sourcepub unsafe fn new(
q_object: impl CastInto<Ref<QObject>>,
receiver_id: &'static CStr
) -> Self
pub unsafe fn new( 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§
source§impl<A> AsReceiver for Receiver<A>
impl<A> AsReceiver for Receiver<A>
impl<A> Copy for Receiver<A>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more