MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / fmt

Method fmt

crates/openshell-server/src/supervisor_session.rs:89–96  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

87
88impl std::fmt::Debug for SupervisorSessionRegistry {
89 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
90 let session_count = self.sessions.lock().unwrap().len();
91 let pending_count = self.pending_relays.lock().unwrap().len();
92 f.debug_struct("SupervisorSessionRegistry")
93 .field("sessions", &session_count)
94 .field("pending_relays", &pending_count)
95 .finish()
96 }
97}
98
99impl SupervisorSessionRegistry {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected