pub struct Env {
pub os: String,
pub arch: String,
pub features: Vec<String>,
}Expand description
Coarse host/runtime facts. Deliberately free of user data.
Fields§
§os: String§arch: String§features: Vec<String>Compile-time feature flags the adopter chose to record.
Implementations§
Source§impl Env
impl Env
Sourcepub fn with_features(features: Vec<String>) -> Self
pub fn with_features(features: Vec<String>) -> Self
Capture the target facts alongside the adopter-declared feature flags
(see crate::Config::features) — the build’s feature selection is
often what separates a reproducible failure from an unreproducible one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Env
impl<'de> Deserialize<'de> for Env
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnsafeUnpin for Env
impl UnwindSafe for Env
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more