pub use gmt_dos_clients_scopehub::scopehub;
const SERVER_IP: &'static str = "127.0.0.1";
#[cfg(feature = "client")]
const CLIENT_ADDRESS: &'static str = "0.0.0.0:0";
mod payload;
#[derive(Debug)]
pub enum PlotScope {}
#[derive(Debug)]
pub enum ImageScope {}
#[derive(Debug)]
pub enum GmtScope {}
pub trait ScopeKind {
fn window_size() -> (f32, f32);
}
impl ScopeKind for PlotScope {
fn window_size() -> (f32, f32) {
(800f32, 600f32)
}
}
impl ScopeKind for ImageScope {
fn window_size() -> (f32, f32) {
(800f32, 800f32)
}
}
impl ScopeKind for GmtScope {
fn window_size() -> (f32, f32) {
(800f32, 900f32)
}
}
pub trait ImageScopeKind: ScopeKind {}
impl ImageScopeKind for ImageScope {}
impl ImageScopeKind for GmtScope {}
#[cfg(any(feature = "client", doc))]
pub mod client;
#[cfg(any(feature = "server", doc))]
pub mod server;