MCPcopy Create free account
hub / github.com/Recordscript/recordscript / all

Method all

libs/scrap/src/common/x11.rs:101–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 }
100
101 pub fn all() -> io::Result<Vec<Display>> {
102 let server = match x11::Server::default() {
103 Ok(server) => server,
104 Err(_) => return Err(io::ErrorKind::ConnectionRefused.into()),
105 };
106
107 Ok(x11::Server::displays(server).map(Display).collect())
108 }
109
110 pub fn width(&self) -> usize {
111 self.0.rect().w as usize

Callers 5

availableMethod · 0.45
updateMethod · 0.45
use_i444Method · 0.45
support_abrMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected