MCPcopy Create free account
hub / github.com/Botloader/botloader / restart_vm

Method restart_vm

components/scheduler/src/vm_session.rs:110–117  ·  view source on GitHub ↗

Replaces the vm on the already claimed worker, used when the guild's scripts changed while a session was active.

(
        &mut self,
        new_vm_session_id: u64,
        scripts: Vec<Script>,
        premium_tier: Option<PremiumSlotTier>,
    )

Source from the content-addressed store, hash-verified

108 /// Replaces the vm on the already claimed worker, used when the guild's
109 /// scripts changed while a session was active.
110 pub fn restart_vm(
111 &mut self,
112 new_vm_session_id: u64,
113 scripts: Vec<Script>,
114 premium_tier: Option<PremiumSlotTier>,
115 ) -> Result<(), ()> {
116 self.send_create_scripts_vm(new_vm_session_id, scripts, premium_tier)
117 }
118
119 fn send_create_scripts_vm(
120 &mut self,

Callers 1

start_fresh_vmMethod · 0.80

Calls 1

Tested by

no test coverage detected