AnySendSyncClone

Trait AnySendSyncClone 

Source
pub trait AnySendSyncClone:
    Any
    + Send
    + Sync
    + Clone { }
Expand description

Represents a type that can be dynamically downcast, is safe to both send and share across threads, and can be cloned.

This trait combines the capabilities of Any, Send, Sync, and Clone, ensuring that types implementing it can be safely sent and shared across thread boundaries and can be cloned.

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§

Source§

impl<T: Any + Send + Sync + Clone> AnySendSyncClone for T

Implements AnySendSyncClone for types that are Any, Send, Sync, and Clone.

This trait signifies that a type can be safely sent across thread boundaries, accessed concurrently, and cloned.