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§
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) -> SignalHandlerIdwhere
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,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.