pub struct HubBuilder {
pub route_send: HubRouteSend,
pub http_server: Arc<Mutex<Option<HttpServer>>>,
pub workspaces: Arc<Mutex<HashMap<String, String>>>,
pub builder: String,
pub abs_cwd_path: String,
pub processes: Arc<Mutex<Vec<HubProcess>>>,
}
Fields§
§route_send: HubRouteSend
§http_server: Arc<Mutex<Option<HttpServer>>>
§workspaces: Arc<Mutex<HashMap<String, String>>>
§builder: String
§abs_cwd_path: String
§processes: Arc<Mutex<Vec<HubProcess>>>
Implementations§
Source§impl HubBuilder
impl HubBuilder
pub fn run_builder_direct<F>( builder: &str, hub_router: &mut HubRouter, event_handler: F, ) -> HubRouteSend
pub fn run_builder_networked<F>( digest: Digest, in_address: Option<SocketAddr>, builder: &str, hub_log: HubLog, event_handler: F, )
pub fn run_builder_commandline<F>(args: Vec<String>, event_handler: F)
pub fn set_config( &mut self, _uid: HubUid, config: HubBuilderConfig, ) -> Result<(), HubWsError>
pub fn default(&mut self, htc: FromHubMsg) -> Result<(), HubWsError>
pub fn process_kill(&mut self, uid: HubUid)
pub fn workspace_split_from_path( &mut self, uid: HubUid, path: &str, ) -> Result<(String, String, String), HubWsError>
pub fn get_workspace_abs( &mut self, uid: HubUid, workspace: &str, ) -> Result<String, HubWsError>
pub fn program_run( &mut self, uid: HubUid, path: &str, args: &[&str], ) -> Result<(), HubWsError>
pub fn cannot_find_build( &mut self, uid: HubUid, package: &str, target: &str, ) -> Result<(), HubWsError>
pub fn cargo( &mut self, uid: HubUid, workspace: &str, args: &[&str], env: &[(&str, &str)], ) -> Result<BuildResult, HubWsError>
pub fn packages_response( &mut self, from: HubAddr, uid: HubUid, packages: Vec<HubPackage>, )
pub fn error(&mut self, uid: HubUid, msg: String) -> HubWsError
pub fn message(&mut self, uid: HubUid, msg: String)
pub fn wasm_strip_debug( &mut self, uid: HubUid, path: &str, ) -> Result<BuildResult, HubWsError>
pub fn read_packages(&mut self, uid: HubUid) -> Vec<(String, String)>
pub fn file_read(&mut self, from: HubAddr, uid: HubUid, path: &str)
pub fn file_write( &mut self, from: HubAddr, uid: HubUid, path: &str, data: Vec<u8>, )
pub fn workspace_file_tree( &mut self, create_digest: bool, ext_inc: &[&str], file_ex: &[&str], dir_ex: &[&str], ) -> BuilderFileTreeNode
Auto Trait Implementations§
impl Freeze for HubBuilder
impl RefUnwindSafe for HubBuilder
impl Send for HubBuilder
impl Sync for HubBuilder
impl Unpin for HubBuilder
impl UnwindSafe for HubBuilder
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