pub struct RuntimeEnvironment {
pub library_version: String,
pub library: String,
pub platform: String,
pub runtime: String,
pub runtime_version: String,
pub architecture: String,
pub os: String,
pub compiler: String,
pub target: String,
pub env_vars: HashMap<String, String>,
pub features: Vec<String>,
}
Expand description
Information about the FerricLink runtime environment
Fields§
§library_version: String
Version of the FerricLink Core library
library: String
Name of the library
platform: String
Platform information
runtime: String
Runtime language
runtime_version: String
Runtime version
architecture: String
Architecture information
os: String
Operating system information
compiler: String
Compiler information
target: String
Target triple
env_vars: HashMap<String, String>
Additional environment variables
features: Vec<String>
Features enabled at compile time
Implementations§
Source§impl RuntimeEnvironment
impl RuntimeEnvironment
Sourcepub fn has_feature(&self, feature: &str) -> bool
pub fn has_feature(&self, feature: &str) -> bool
Check if a specific feature is enabled
Sourcepub fn get_env_var(&self, key: &str) -> Option<&String>
pub fn get_env_var(&self, key: &str) -> Option<&String>
Get environment variable value
Sourcepub fn is_release(&self) -> bool
pub fn is_release(&self) -> bool
Check if running in release mode
Sourcepub fn memory_info(&self) -> Option<MemoryInfo>
pub fn memory_info(&self) -> Option<MemoryInfo>
Get memory information (if available)
Trait Implementations§
Source§impl Clone for RuntimeEnvironment
impl Clone for RuntimeEnvironment
Source§fn clone(&self) -> RuntimeEnvironment
fn clone(&self) -> RuntimeEnvironment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RuntimeEnvironment
impl Debug for RuntimeEnvironment
Source§impl Default for RuntimeEnvironment
impl Default for RuntimeEnvironment
Source§impl<'de> Deserialize<'de> for RuntimeEnvironment
impl<'de> Deserialize<'de> for RuntimeEnvironment
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
Source§impl PartialEq for RuntimeEnvironment
impl PartialEq for RuntimeEnvironment
Source§impl Serializable for RuntimeEnvironment
impl Serializable for RuntimeEnvironment
Source§fn is_serializable() -> bool
fn is_serializable() -> bool
Check if this object is serializable Read more
Source§fn to_json_pretty(&self) -> Result<String>
fn to_json_pretty(&self) -> Result<String>
Serialize this object to a pretty-printed JSON string
Source§fn to_dict(&self) -> Result<HashMap<String, Value>>
fn to_dict(&self) -> Result<HashMap<String, Value>>
Serialize this object to a dictionary (HashMap)
Source§impl Serialize for RuntimeEnvironment
impl Serialize for RuntimeEnvironment
impl StructuralPartialEq for RuntimeEnvironment
Auto Trait Implementations§
impl Freeze for RuntimeEnvironment
impl RefUnwindSafe for RuntimeEnvironment
impl Send for RuntimeEnvironment
impl Sync for RuntimeEnvironment
impl Unpin for RuntimeEnvironment
impl UnwindSafe for RuntimeEnvironment
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