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 VcValueTrait for Box<dyn ProcessEnv>
impl VcValueTrait for Box<dyn ProcessEnv>
type ValueTrait = dyn ProcessEnv
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
Returns the vtable for an implementation of this trait.
Panics if ValueTypeId does not implement the trait.