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

Method spec_version

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

Source from the content-addressed store, hash-verified

130 }
131
132 pub fn spec_version(&self) -> Option<ButtplugMessageSpecVersion> {
133 let state = self.state.read().expect("State lock poisoned");
134 match &*state {
135 ConnectionState::Connected { spec_version, .. } => Some(*spec_version),
136 _ => None,
137 }
138 }
139
140 /// Returns the current connection state.
141 pub fn connection_state(&self) -> ConnectionState {

Callers 1

parse_messageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected