pub type ReadOnlyContextVar<T> = ReadOnlyVar<T, ContextVar<T>>;
Expand description
Context var that is always read-only, even if it is representing a read-write var.
Aliased Typeยง
struct ReadOnlyContextVar<T>(/* private fields */);
pub type ReadOnlyContextVar<T> = ReadOnlyVar<T, ContextVar<T>>;
Context var that is always read-only, even if it is representing a read-write var.
struct ReadOnlyContextVar<T>(/* private fields */);