AnySendClone

Trait AnySendClone 

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

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

This trait combines the capabilities of Any, Send, and Clone, ensuring that types implementing it can be safely sent 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> AnySendClone for T
where T: Any + Send + Clone,

Implements AnySendClone for types that are Any, Send, and Clone.

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