pub struct CloudBackend { /* private fields */ }Expand description
Submits the whole build to Harmont Cloud and watches it; the server schedules.
Implementations§
Source§impl CloudBackend
impl CloudBackend
Sourcepub const fn new(
client: HarmontClient,
api_base: String,
app_base: String,
org: String,
) -> Self
pub const fn new( client: HarmontClient, api_base: String, app_base: String, org: String, ) -> Self
Construct a CloudBackend.
client/api_base come from the CLI’s resolved cloud settings;
app_base is the dashboard host the watch URL points at (see the field
docs); org is the resolved organization slug.
Trait Implementations§
Source§impl Debug for CloudBackend
impl Debug for CloudBackend
Source§impl ExecutionBackend for CloudBackend
impl ExecutionBackend for CloudBackend
Source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
What this backend can honor — consulted by the CLI before
start.Source§fn start<'life0, 'async_trait>(
&'life0 self,
req: RunRequest,
) -> Pin<Box<dyn Future<Output = Result<BackendHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
req: RunRequest,
) -> Pin<Box<dyn Future<Output = Result<BackendHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Begin running the whole build. Setup failures (auth, bad plan, no
daemon) fail here; a failed build is
Ok(handle) resolving to
BuildOutcome { status: Failed }.Auto Trait Implementations§
impl !RefUnwindSafe for CloudBackend
impl !UnwindSafe for CloudBackend
impl Freeze for CloudBackend
impl Send for CloudBackend
impl Sync for CloudBackend
impl Unpin for CloudBackend
impl UnsafeUnpin for CloudBackend
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