Skip to main content

MaybeSendSync

Trait MaybeSendSync 

Source
pub trait MaybeSendSync: Send + Sync { }
Expand description

Auto-trait-style marker — Send + Sync on native, empty on wasm32.

Used as a supertrait on Context, Workload, and MessageDispatcher so async_trait default bodies compile in both modes without adding explicit Send / Sync bounds to the user-visible trait definition.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Send + Sync + ?Sized> MaybeSendSync for T

Available on non-WebAssembly only.