swayipc_command_builder/commands/
inhibit_idle.rs

1use super::*;
2
3impl Command<InhibitIdle> {
4    pub fn focus(self) -> Command<Valid> {
5        self.push_str("focus").transmute()
6    }
7
8    pub fn fullscreen(self) -> Command<Valid> {
9        self.push_str("fullscreen").transmute()
10    }
11
12    pub fn open(self) -> Command<Valid> {
13        self.push_str("open").transmute()
14    }
15
16    pub fn none(self) -> Command<Valid> {
17        self.push_str("none").transmute()
18    }
19
20    pub fn visible(self) -> Command<Valid> {
21        self.push_str("visible").transmute()
22    }
23}