use actix::{Addr, Message}; use std::io; use crate::function_source::FunctionSources; use crate::source::{Query, Source, Tile, XYZ}; use crate::table_source::TableSources; use crate::worker_actor::WorkerActor; pub struct Connect { pub addr: Addr, } impl Message for Connect { type Result = Addr; } pub struct GetTile { pub xyz: XYZ, pub query: Option, pub source: Box, } impl Message for GetTile { type Result = Result; } pub struct GetTableSources {} impl Message for GetTableSources { type Result = Result; } pub struct GetFunctionSources {} impl Message for GetFunctionSources { type Result = Result; } pub struct RefreshTableSources { pub table_sources: Option, } impl Message for RefreshTableSources { type Result = (); } pub struct RefreshFunctionSources { pub function_sources: Option, } impl Message for RefreshFunctionSources { type Result = (); }