Trait glib_signal::ObjectSignalExt

source ·
pub trait ObjectSignalExt: ObjectType {
    // Required methods
    unsafe fn handle_closure(
        &self,
        signal: &ConnectDetails,
        callback: &Closure
    ) -> Result<SignalHandlerId, BoolError>;
    fn remove_handle(&self, handle: SignalHandlerId);
    fn handle<S, S_, C>(&self, signal: S_, callback: C) -> SignalHandlerId
       where C: Fn(&Self, S::Arguments) -> <S::Return as ToValueOption>::Type,
             S: DetailedSignal,
             S_: Into<ConnectDetails<S>>,
             Self: Notifies<S::Signal>;
    fn signal_stream<S, S_>(
        &self,
        signal: S_
    ) -> SignalStream<Self, S::Arguments>
       where S: DetailedSignal,
             S_: Into<ConnectDetails<S>>,
             Self: Notifies<S::Signal>,
             <S::Return as ToValueOption>::Type: Default;
}

Required Methods§

source

unsafe fn handle_closure( &self, signal: &ConnectDetails, callback: &Closure ) -> Result<SignalHandlerId, BoolError>

source

fn remove_handle(&self, handle: SignalHandlerId)

source

fn handle<S, S_, C>(&self, signal: S_, callback: C) -> SignalHandlerId
where C: Fn(&Self, S::Arguments) -> <S::Return as ToValueOption>::Type, S: DetailedSignal, S_: Into<ConnectDetails<S>>, Self: Notifies<S::Signal>,

source

fn signal_stream<S, S_>(&self, signal: S_) -> SignalStream<Self, S::Arguments>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: ObjectType> ObjectSignalExt for O
where for<'a> BorrowedObject<'a, O>: FromValue<'a>,