about summary refs log tree commit diff
path: root/src/facility.rs
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-11-20 23:09:51 -0700
committerIrene Knapp <ireneista@irenes.space>2026-11-20 23:09:51 -0700
commit8a06e8a8aae8c77de1d93833edaeed4d9cb5fb1d (patch)
tree838ea975e6c275a8ddacdd872bd7a54ea0633572 /src/facility.rs
parent933bf0a30025cc0d2885cfd7c1eb401dd647b1d1 (diff)
make stuff async; open /dev/sysmon
Force-Push: yes
Change-Id: I65f91e5e7809226d44bc34c99a563a424321b5e5
Diffstat (limited to 'src/facility.rs')
-rw-r--r--src/facility.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/facility.rs b/src/facility.rs
index 824a864..c156570 100644
--- a/src/facility.rs
+++ b/src/facility.rs
@@ -48,7 +48,7 @@ pub trait CreatableFacility: Facility + Sized {
    *   As far as why the compiler can't reach that conclusion on its own and
    * skip it, we have no specific information.
    */
-  fn new() -> Result<Self>;
+  async fn new() -> Result<Self>;
 
   /* The only way to coerce to dyn is to return as it! */
   fn as_box<'a>(self) -> Box<dyn Facility + 'a>
@@ -68,9 +68,9 @@ bitflags! {
 }
 
 impl FacilityType {
-  pub fn new<'a>(&self) -> Result<Box<dyn Facility + 'a>> {
+  pub async fn new(&self) -> Result<Box<dyn Facility>> {
     match self {
-      &FacilityType::ENVSYS => Ok(EnvSys::new()?.as_box()),
+      &FacilityType::ENVSYS => Ok(EnvSys::new().await?.as_box()),
       _ => todo!()
     }
   }