glib::subclass::object

Trait ObjectClassSubclassExt

Source
pub unsafe trait ObjectClassSubclassExt: Sized + 'static {
    // Provided method
    fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
       where F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static { ... }
}
Expand description

Extension trait for glib::Object’s class struct.

This contains various class methods and allows subclasses to override signal class handlers.

Provided Methods§

Source

fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F)
where F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,

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.

Implementors§