MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / open

Method open

src/monitor.rs:182–190  ·  view source on GitHub ↗

Open the global monitor mmap for reading.

()

Source from the content-addressed store, hash-verified

180impl MmapReader {
181 /// Open the global monitor mmap for reading.
182 pub fn open() -> std::io::Result<Self> {
183 let dir = global_tracedecay_dir().ok_or_else(|| {
184 std::io::Error::new(
185 std::io::ErrorKind::NotFound,
186 "cannot resolve home directory",
187 )
188 })?;
189 Self::open_at(&dir)
190 }
191
192 /// Open a monitor mmap at an explicit directory (for testing).
193 pub fn open_at(dir: &Path) -> std::io::Result<Self> {

Calls 1

global_tracedecay_dirFunction · 0.85