From a75729a759108ae672d8d1cfcc6252a6b680ef1f Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 23 Nov 2026 17:53:35 -0700 Subject: begin to stub out an I3 facility identifying the socket turns out to be quite some work Force-Push: yes Change-Id: I747e89410efdc38cb13d3be2ad3e985c1cdc9952 --- src/facility.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/facility.rs') diff --git a/src/facility.rs b/src/facility.rs index 0c34bf9..56afaf4 100644 --- a/src/facility.rs +++ b/src/facility.rs @@ -6,8 +6,10 @@ use std::collections::BTreeMap; use bitflags::bitflags; pub use envsys::EnvSys; +pub use i3::I3; pub mod envsys; +pub mod i3; pub trait Facility: Any { @@ -69,6 +71,7 @@ bitflags! { #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct FacilityType: u32 { const ENVSYS = 0x00000001; + const I3 = 0x00000002; } } @@ -76,6 +79,7 @@ impl FacilityType { pub async fn new(&self) -> Result> { match self { &FacilityType::ENVSYS => Ok(EnvSys::new().await?.as_box()), + &FacilityType::I3 => Ok(I3::new().await?.as_box()), _ => todo!() } } -- cgit 1.4.1