DynSource

Type Alias DynSource 

Source
pub type DynSource<T> = Arc<dyn Source<Value = T, Listener = DynListener<()>> + Send + Sync + 'static>;
Expand description

Type-erased form of a Source which provides a value of type T.

This type is Send and Sync. When that is not satisfiable, use unsync::DynSource instead.

Aliased Type§

pub struct DynSource<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> From<Constant<T, Arc<dyn Listener<()> + Sync + Send>>> for DynSource<T>
where T: Clone + Debug + Send + Sync + 'static,

Source§

fn from(value: Constant<T, DynListener<()>>) -> Self

Converts to this type from the input type.