pub trait ProcessEnv:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn read_all(self: Vc<Self>) -> Vc<TransientEnvMap>
where Self: Sized;
// Provided method
fn read(self: Vc<Self>, name: RcStr) -> Vc<Option<RcStr>>
where Self: Sized { ... }
}Required Methods§
Sourcefn read_all(self: Vc<Self>) -> Vc<TransientEnvMap>where
Self: Sized,
fn read_all(self: Vc<Self>) -> Vc<TransientEnvMap>where
Self: Sized,
Reads all env variables into a Map
Provided Methods§
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn ProcessEnv>
impl TraitVtablePrototype for Box<dyn ProcessEnv>
Source§impl VcValueTrait for Box<dyn ProcessEnv>
impl VcValueTrait for Box<dyn ProcessEnv>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated at program load by
#[ctor::ctor]
functions emitted by each #[turbo_tasks::value_impl] expansion. Read moretype ValueTrait = dyn ProcessEnv
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn ProcessEnv>> for Box<dyn ProcessEnv>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ProcessEnv>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ProcessEnv>> for Box<dyn ProcessEnv>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ProcessEnv>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ProcessEnv>
Available on debug-assertions enabled only.