Trait qmetaobject::connections::Slot[][src]

pub trait Slot<Args> {
    unsafe fn apply(&mut self, a: *const *const c_void);
}

Trait for slots that can be connected to Signal

You should not implement this trait. It is already implemented for such FnMut that has the same count and types of arguments.

Required methods

unsafe fn apply(&mut self, a: *const *const c_void)[src]

a is an array containing the pointers to return value and arguments:

  • a[0] is a pointer to the return value,
  • a[1] is a pointer to the first argument,
  • a[2] is a pointer to the second argument,
  • and so on…
Loading content...

Implementations on Foreign Types

impl<Args: SignalArgArrayToTuple> Slot<Args> for *mut ConnectionFutureState<Args>[src]

Loading content...

Implementors

impl<T> Slot<fn()> for T where
    T: FnMut(), 
[src]

impl<T, A, B, C, D, E, F, G, H, I, J> Slot<fn(A, B, C, D, E, F, G, H, I, J)> for T where
    T: FnMut(&A, &B, &C, &D, &E, &F, &G, &H, &I, &J), 
[src]

impl<T, B, C, D, E, F, G, H, I, J> Slot<fn(B, C, D, E, F, G, H, I, J)> for T where
    T: FnMut(&B, &C, &D, &E, &F, &G, &H, &I, &J), 
[src]

impl<T, C, D, E, F, G, H, I, J> Slot<fn(C, D, E, F, G, H, I, J)> for T where
    T: FnMut(&C, &D, &E, &F, &G, &H, &I, &J), 
[src]

impl<T, D, E, F, G, H, I, J> Slot<fn(D, E, F, G, H, I, J)> for T where
    T: FnMut(&D, &E, &F, &G, &H, &I, &J), 
[src]

impl<T, E, F, G, H, I, J> Slot<fn(E, F, G, H, I, J)> for T where
    T: FnMut(&E, &F, &G, &H, &I, &J), 
[src]

impl<T, F, G, H, I, J> Slot<fn(F, G, H, I, J)> for T where
    T: FnMut(&F, &G, &H, &I, &J), 
[src]

impl<T, G, H, I, J> Slot<fn(G, H, I, J)> for T where
    T: FnMut(&G, &H, &I, &J), 
[src]

impl<T, H, I, J> Slot<fn(H, I, J)> for T where
    T: FnMut(&H, &I, &J), 
[src]

impl<T, I, J> Slot<fn(I, J)> for T where
    T: FnMut(&I, &J), 
[src]

impl<T, J> Slot<fn(J)> for T where
    T: FnMut(&J), 
[src]

Loading content...