Skip to main content

ArcPolicy

Trait ArcPolicy 

Source
pub trait ArcPolicy:
    Sized
    + Send
    + Sync
    + 'static {
    // Provided method
    fn new_arc(self) -> Arc<Self>  { ... }
}
Expand description

Common functionality for policy Arc construction

This trait provides a standardized new_arc() method for all policy types, eliminating the need for manual Arc::new() calls in client code.

Provided Methods§

Source

fn new_arc(self) -> Arc<Self>

Create an Arc-wrapped instance of this policy

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§