Skip to main content

Hook

Trait Hook 

Source
pub trait Hook:
    Fn()
    + Send
    + Sync
    + 'static { }
Expand description

The simple alias for function types that are 'static, Send, and Sync.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: 'static + Fn() + Send + Sync> Hook for T