[][src]Struct makepad_hub::HubBuilder

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: HubRouteSendhttp_server: Arc<Mutex<Option<HttpServer>>>workspaces: Arc<Mutex<HashMap<String, String>>>builder: Stringabs_cwd_path: Stringprocesses: Arc<Mutex<Vec<HubProcess>>>

Methods

impl HubBuilder[src]

pub fn run_builder_direct<F>(
    builder: &str,
    hub_router: &mut HubRouter,
    event_handler: F
) -> HubRouteSend where
    F: Fn(&mut HubBuilder, FromHubMsg) -> Result<(), HubWsError> + Clone + Send + 'static, 
[src]

pub fn run_builder_networked<F>(
    digest: Digest,
    in_address: Option<SocketAddr>,
    builder: &str,
    hub_log: HubLog,
    event_handler: F
) where
    F: Fn(&mut HubBuilder, FromHubMsg) -> Result<(), HubWsError> + Clone + Send + 'static, 
[src]

pub fn run_builder_commandline<F>(args: Vec<String>, event_handler: F) where
    F: Fn(&mut HubBuilder, FromHubMsg) -> Result<(), HubWsError> + Clone + Send + 'static, 
[src]

pub fn set_config(
    &mut self,
    _uid: HubUid,
    config: HubBuilderConfig
) -> Result<(), HubWsError>
[src]

pub fn default(&mut self, htc: FromHubMsg) -> Result<(), HubWsError>[src]

pub fn process_kill(&mut self, uid: HubUid)[src]

pub fn workspace_split_from_path(
    &mut self,
    uid: HubUid,
    path: &str
) -> Result<(String, String, String), HubWsError>
[src]

pub fn get_workspace_abs(
    &mut self,
    uid: HubUid,
    workspace: &str
) -> Result<String, HubWsError>
[src]

pub fn program_run(
    &mut self,
    uid: HubUid,
    path: &str,
    args: &[&str]
) -> Result<(), HubWsError>
[src]

pub fn cannot_find_build(
    &mut self,
    uid: HubUid,
    package: &str,
    target: &str
) -> Result<(), HubWsError>
[src]

pub fn cargo(
    &mut self,
    uid: HubUid,
    workspace: &str,
    args: &[&str],
    env: &[(&str, &str)]
) -> Result<BuildResult, HubWsError>
[src]

pub fn packages_response(
    &mut self,
    from: HubAddr,
    uid: HubUid,
    packages: Vec<HubPackage>
)
[src]

pub fn error(&mut self, uid: HubUid, msg: String) -> HubWsError[src]

pub fn message(&mut self, uid: HubUid, msg: String)[src]

pub fn wasm_strip_debug(
    &mut self,
    uid: HubUid,
    path: &str
) -> Result<BuildResult, HubWsError>
[src]

pub fn read_packages(&mut self, uid: HubUid) -> Vec<(String, String)>[src]

pub fn file_read(&mut self, from: HubAddr, uid: HubUid, path: &str)[src]

pub fn file_write(
    &mut self,
    from: HubAddr,
    uid: HubUid,
    path: &str,
    data: Vec<u8>
)
[src]

pub fn workspace_file_tree(
    &mut self,
    create_digest: bool,
    ext_inc: &[&str],
    file_ex: &[&str],
    dir_ex: &[&str]
) -> BuilderFileTreeNode
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]