Skip to main content

ThreadSafe

Trait ThreadSafe 

Source
pub trait ThreadSafe:
    Send
    + Sync
    + 'static { }
Expand description

A trait which signifies a thread safe type. Can be used in a static.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Send + Sync + 'static> ThreadSafe for T