Skip to main content

FromStateArc

Trait FromStateArc 

Source
pub trait FromStateArc: Sized {
    // Required method
    fn from_state_arc(state: &State) -> Result<Self, DependencyInjectionError>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> FromStateArc for Arc<T>
where T: Send + Sync + 'static,

Implementors§