Skip to main content

SendSync

Trait SendSync 

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

Thread-safety bound for abstractions that own GPU resources.

Native targets require Send + Sync + 'static; wasm requires only '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> SendSync for T

Available on non-target_family=wasm only.