pub trait MainThreadOnly: AnyThread + Sealed { }
Expand description

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

Implementors