Skip to main content

MainThreadOnly

Trait MainThreadOnly 

Source
pub trait MainThreadOnly: Sealed { }
Expand description

Represents a privilege to execute functions which are only safe to execute from the main thread.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§