MCPcopy Create free account
hub / github.com/Moosync/Moosync / set_state

Method set_state

src/store/player_store.rs:348–355  ·  view source on GitHub ↗
(&mut self, state: PlayerState)

Source from the content-addressed store, hash-verified

346
347 #[tracing::instrument(level = "debug", skip(self, state))]
348 pub fn set_state(&mut self, state: PlayerState) {
349 tracing::debug!("Setting player state {:?}", state);
350 self.data.player_details.state = state;
351 self.dump_store(&[DumpType::PlayerState]);
352
353 set_playback_state(state);
354 send_extension_event(ExtensionExtraEvent::PlayerStateChanged([state]))
355 }
356
357 #[tracing::instrument(level = "debug", skip(self))]
358 fn get_song_key(&self) -> String {

Callers 4

AppFunction · 0.80
ControlsFunction · 0.80
play_nowMethod · 0.80

Calls 3

set_playback_stateFunction · 0.85
send_extension_eventFunction · 0.85
dump_storeMethod · 0.80

Tested by

no test coverage detected