stak_process_context/process_context/void.rs
1use crate::ProcessContext;
2
3/// A void process context that provides no context information.
4#[derive(Debug, Default)]
5pub struct VoidProcessContext {}
6
7impl VoidProcessContext {
8 /// Creates a process context.
9 pub const fn new() -> Self {
10 Self {}
11 }
12}
13
14impl ProcessContext for VoidProcessContext {
15 fn command_line_rev(&self) -> impl IntoIterator<Item = &str> {
16 []
17 }
18
19 fn environment_variables(&self) -> impl IntoIterator<Item = (&str, &str)> {
20 []
21 }
22}