Skip to main content

ChildState

Trait ChildState 

Source
pub trait ChildState: Sealed + Sized { }
Expand description

Child specification state.

This trait is implemented only for WorkerSpec and SupervisorSpec, and is sealed: it cannot be implemented outside of this crate. It exists so that Supervisor::add_worker can accept a ChildSpecification in either state (as well as bare workers and supervisors) while lowering each into the supervisor’s internal representation.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§