Moved WorkerId type to devtools_traits

This commit is contained in:
Florian Strübe 2015-12-06 23:32:45 +01:00
parent 95e6b1d101
commit b81f712ce1
9 changed files with 17 additions and 16 deletions

View file

@ -30,7 +30,7 @@ use hyper::header::Headers;
use hyper::http::RawStatus;
use hyper::method::Method;
use ipc_channel::ipc::IpcSender;
use msg::constellation_msg::{PipelineId, WorkerId};
use msg::constellation_msg::PipelineId;
use rustc_serialize::{Decodable, Decoder};
use std::net::TcpStream;
use time::Duration;
@ -319,3 +319,6 @@ impl PreciseTime {
Duration::nanoseconds((later.0 - self.0) as i64)
}
}
#[derive(Clone, PartialEq, Eq, Copy, Hash, Debug, Deserialize, Serialize, HeapSizeOf)]
pub struct WorkerId(pub u32);