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§
impl Dynamic<Box<dyn ProcessEnv>> for Box<dyn ProcessEnv>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ProcessEnv>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn ProcessEnv>
impl TraitVtablePrototype for Box<dyn ProcessEnv>
impl Upcast<Box<dyn ProcessEnv>> for CommandLineProcessEnv
impl Upcast<Box<dyn ProcessEnv>> for CustomProcessEnv
impl Upcast<Box<dyn ProcessEnv>> for DotenvProcessEnv
impl Upcast<Box<dyn ProcessEnv>> for FilterProcessEnv
impl Upcast<Box<dyn ProcessEnv>> for EnvMap
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 ProcessEnv>> for CommandLineProcessEnv
impl UpcastStrict<Box<dyn ProcessEnv>> for CustomProcessEnv
impl UpcastStrict<Box<dyn ProcessEnv>> for DotenvProcessEnv
impl UpcastStrict<Box<dyn ProcessEnv>> for FilterProcessEnv
impl UpcastStrict<Box<dyn ProcessEnv>> for EnvMap
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ProcessEnv>
Available on debug-assertions enabled only.
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 by [crate::value_type::register_all_trait_methods] Read more
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".