Struct proto_pdk_api::HostEnvironment
source · pub struct HostEnvironment {
pub arch: HostArch,
pub os: HostOS,
pub home_dir: VirtualPath,
pub proto_dir: VirtualPath,
}
Expand description
Information about the host environment (the current runtime).
Fields§
§arch: HostArch
§os: HostOS
§home_dir: VirtualPath
§proto_dir: VirtualPath
Trait Implementations§
source§impl Clone for HostEnvironment
impl Clone for HostEnvironment
source§fn clone(&self) -> HostEnvironment
fn clone(&self) -> HostEnvironment
Returns a copy 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 HostEnvironment
impl Debug for HostEnvironment
source§impl Default for HostEnvironment
impl Default for HostEnvironment
source§fn default() -> HostEnvironment
fn default() -> HostEnvironment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HostEnvironmentwhere
HostEnvironment: Default,
impl<'de> Deserialize<'de> for HostEnvironmentwhere
HostEnvironment: Default,
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 HostEnvironment
impl PartialEq for HostEnvironment
source§fn eq(&self, other: &HostEnvironment) -> bool
fn eq(&self, other: &HostEnvironment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HostEnvironment
impl Serialize for HostEnvironment
impl Eq for HostEnvironment
impl StructuralEq for HostEnvironment
impl StructuralPartialEq for HostEnvironment
Auto Trait Implementations§
impl RefUnwindSafe for HostEnvironment
impl Send for HostEnvironment
impl Sync for HostEnvironment
impl Unpin for HostEnvironment
impl UnwindSafe for HostEnvironment
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