Files
servo/components/devtools/actors/pause.rs
eri 0358619801 devtools: Default implementation for handle_message (#41076)
Some cleanup to avoid having to specify an empty `handle_message` method
if it is not implemented or not necessary. Removed the TODOs from
Environment and Pause since they don't respond to any message.

Testing: This patch doesn't change behaviour.

Signed-off-by: eri <eri@igalia.com>
2025-12-05 13:56:19 +00:00

20 lines
591 B
Rust

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use crate::actor::Actor;
// TODO: Remove once the actor is used.
#[allow(dead_code)]
/// Referenced by `ThreadActor` when replying to `interupt` messages.
/// <https://searchfox.org/firefox-main/source/devtools/server/actors/thread.js#1699>
pub struct PauseActor {
pub name: String,
}
impl Actor for PauseActor {
fn name(&self) -> String {
self.name.clone()
}
}