MCPcopy Create free account
hub / github.com/GCWing/BitFun / from

Method from

src/apps/desktop/src/api/terminal_api.rs:121–134  ·  view source on GitHub ↗
(resp: CoreSessionResponse)

Source from the content-addressed store, hash-verified

119
120impl From<CoreSessionResponse> for SessionResponse {
121 fn from(resp: CoreSessionResponse) -> Self {
122 Self {
123 id: resp.id,
124 name: resp.name,
125 shell_type: format!("{:?}", resp.shell_type),
126 cwd: resp.cwd,
127 pid: resp.pid,
128 status: resp.status,
129 cols: resp.cols,
130 rows: resp.rows,
131 connection_id: None,
132 source: format_session_source(&resp.source),
133 }
134 }
135}
136
137#[derive(Debug, Clone, Serialize, Deserialize)]

Callers

nothing calls this directly

Calls 1

format_session_sourceFunction · 0.85

Tested by

no test coverage detected