//! Core message types.
use Serialize;
use DeserializeOwned;
/// Trait bound for types that can cross the Worker boundary.
///
/// Automatically implemented for any `T: Serialize + DeserializeOwned + 'static`.
/// An event received from a Web Worker.
///
/// Contains the deserialized payload and an optional binary sidecar
/// that was transferred zero-copy via `ArrayBuffer`.