pub trait BroadcastTrait: Clone + Debug { }
Expand description
Defines the essential traits required for types that can be broadcast.
Any type implementing BroadcastTrait
must also implement Clone
and Debug
,
enabling efficient duplication and debugging within the broadcast system.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<T> BroadcastTrait for T
Implements the BroadcastTrait
for any type that also implements Clone
and Debug
.
This blanket implementation allows any clonable and debuggable type to be used in the broadcast system.