diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-11-18 14:12:11 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-11-18 14:12:11 -0700 |
| commit | ddc986ea05c5c17758e1028ce0d9f20dc133ec9d (patch) | |
| tree | 417111926032329d71ce8a292c151b04fffa7201 /src/facilities/envsys.rs | |
| parent | 01f5b773ab89b809059e2212feb8547f8b073e91 (diff) | |
add an abstraction called "facilities", which does nothing yet
the type system work was a pain, so it's being checked in now Force-Push: yes Change-Id: If7ec15f0108afb030fa2e5a207c77a6cf9828c43
Diffstat (limited to 'src/facilities/envsys.rs')
| -rw-r--r-- | src/facilities/envsys.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/facilities/envsys.rs b/src/facilities/envsys.rs new file mode 100644 index 0000000..7b5fccc --- /dev/null +++ b/src/facilities/envsys.rs @@ -0,0 +1,28 @@ +use crate::error::{ Error, Result }; +use crate::facilities::{ Facility, FacilityType, TypeableFacility }; + +use std::any::Any; +use std::sync::Arc; +use std::sync::Mutex; + + +pub struct EnvSys { +} + +impl Facility for EnvSys { + fn new() -> Result<Self> + where Self: Sized + { + Ok(EnvSys { + }) + } + + fn as_any_mut(&mut self) -> &mut dyn Any { + self + } +} + +impl TypeableFacility for EnvSys { + const FACILITY_TYPE: FacilityType = FacilityType::ENVSYS; +} + |