MCPcopy Create free account
hub / github.com/buttplugio/buttplug / client_name

Method client_name

crates/buttplug_server/src/server.rs:124–130  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

122 }
123
124 pub fn client_name(&self) -> Option<String> {
125 let state = self.state.read().expect("State lock poisoned");
126 match &*state {
127 ConnectionState::Connected { client_name, .. } => Some(client_name.clone()),
128 _ => None,
129 }
130 }
131
132 pub fn spec_version(&self) -> Option<ButtplugMessageSpecVersion> {
133 let state = self.state.read().expect("State lock poisoned");

Callers 2

perform_handshakeMethod · 0.80
fromMethod · 0.80

Calls 1

cloneMethod · 0.80

Tested by 1

fromMethod · 0.64