pub struct Module {
pub id: String,
pub program: PathBuf,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub reserved: bool,
pub enabled: bool,
}Expand description
A module the private subc daemon spawns and supervises, like a production module entry in subc.jsonc. Environment entries augment the daemon’s inherited environment; do not override its isolated XDG homes.
Fields§
§id: String§program: PathBuf§args: Vec<String>§env: BTreeMap<String, String>§reserved: bool§enabled: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Module
impl Freeze for Modulewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Modulewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Module
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