diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2018-10-26 16:44:45 -0500 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2018-10-29 09:21:37 -0500 |
commit | 05391e27cda2f394adc5c16584bcbc55d921eb5e (patch) | |
tree | e77fda5519c73f3fe3af9ae0f33b42c613f8b3a9 /components/script_traits/script_msg.rs | |
parent | e580250d5d99060b0ee8d88e3ff66b6d9ec24050 (diff) | |
download | servo-05391e27cda2f394adc5c16584bcbc55d921eb5e.tar.gz servo-05391e27cda2f394adc5c16584bcbc55d921eb5e.zip |
Add lots of derived Debug impls
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 3ec82114126..f7c075f8cd8 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -61,7 +61,7 @@ impl fmt::Debug for LayoutMsg { } /// Whether a DOM event was prevented by web content -#[derive(Deserialize, Serialize)] +#[derive(Debug, Deserialize, Serialize)] pub enum EventResult { /// Allowed by web content DefaultAllowed, @@ -241,7 +241,7 @@ impl fmt::Debug for ScriptMsg { } /// Entities required to spawn service workers -#[derive(Clone, Deserialize, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct ScopeThings { /// script resource url pub script_url: ServoUrl, @@ -268,7 +268,7 @@ pub struct SWManagerSenders { } /// Messages sent to Service Worker Manager thread -#[derive(Deserialize, Serialize)] +#[derive(Debug, Deserialize, Serialize)] pub enum ServiceWorkerMsg { /// Message to register the service worker RegisterServiceWorker(ScopeThings, ServoUrl), @@ -281,7 +281,7 @@ pub enum ServiceWorkerMsg { } /// Messages outgoing from the Service Worker Manager thread to constellation -#[derive(Deserialize, Serialize)] +#[derive(Debug, Deserialize, Serialize)] pub enum SWManagerMsg { /// Provide the constellation with a means of communicating with the Service Worker Manager OwnSender(IpcSender<ServiceWorkerMsg>), |