pub struct HttpServer {
pub listen_thread: Option<JoinHandle<()>>,
pub listen_address: Option<SocketAddr>,
pub shared: Arc<Mutex<HttpServerShared>>,
}
Fields§
§listen_thread: Option<JoinHandle<()>>
§listen_address: Option<SocketAddr>
Implementations§
Source§impl HttpServer
impl HttpServer
pub fn start_http_server( config: &HttpServerConfig, workspaces_arc: Arc<Mutex<HashMap<String, String>>>, ) -> Option<HttpServer>
pub fn send_json_message(&mut self, json_msg: &str)
pub fn send_file_change(&mut self, path: &str)
pub fn send_build_start(&mut self)
pub fn terminate(&mut self)
Trait Implementations§
Source§impl Default for HttpServer
impl Default for HttpServer
Source§fn default() -> HttpServer
fn default() -> HttpServer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpServer
impl !RefUnwindSafe for HttpServer
impl Send for HttpServer
impl Sync for HttpServer
impl Unpin for HttpServer
impl !UnwindSafe for HttpServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more