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

Method bind

src/crates/services/terminal/src/session/binding.rs:145–148  ·  view source on GitHub ↗

Manually bind an existing terminal session to an owner This is useful when you have an existing terminal session that wasn't created through get_or_create(). # Note If a binding already exists for this owner, it will be replaced.

(&self, owner_id: &str, terminal_session_id: &str)

Source from the content-addressed store, hash-verified

143 /// # Note
144 /// If a binding already exists for this owner, it will be replaced.
145 pub fn bind(&self, owner_id: &str, terminal_session_id: &str) {
146 self.bindings
147 .insert(owner_id.to_string(), terminal_session_id.to_string());
148 }
149
150 /// Unbind a terminal session from an owner without closing the session
151 ///

Callers 15

index-RWXIAc4-.jsFile · 0.80
$_Function · 0.80
Q_Function · 0.80
FhFunction · 0.80
lTFunction · 0.80
$hFunction · 0.80
sNFunction · 0.80
XhFunction · 0.80
etFunction · 0.80
LTFunction · 0.80
igFunction · 0.80
getTMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by 1

test_binding_operationsFunction · 0.64