MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / init

Method init

tpm/src/socket.rs:62–65  ·  view source on GitHub ↗
(&mut self, path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

60 }
61
62 pub fn init(&mut self, path: impl AsRef<Path>) -> Result<()> {
63 self.connect(path)?;
64 Ok(())
65 }
66
67 pub fn connect(&mut self, socket_path: impl AsRef<Path>) -> Result<()> {
68 let socket_path = socket_path.as_ref();

Callers 1

newMethod · 0.45

Calls 1

connectMethod · 0.80

Tested by

no test coverage detected