pub struct Deployment {
pub hosts: Vec<Weak<dyn Host>>,
pub services: Vec<Weak<dyn Service>>,
pub resource_pool: ResourcePool,
/* private fields */
}Fields§
§hosts: Vec<Weak<dyn Host>>§services: Vec<Weak<dyn Service>>§resource_pool: ResourcePoolImplementations§
Source§impl Deployment
impl Deployment
pub fn new() -> Self
pub fn Localhost(&self) -> Arc<LocalhostHost> ⓘ
pub fn CustomService( &mut self, on: Arc<dyn Host>, external_ports: Vec<u16>, ) -> Arc<CustomService> ⓘ
Sourcepub async fn run_until(
&mut self,
trigger: impl Future<Output = ()>,
) -> Result<()>
pub async fn run_until( &mut self, trigger: impl Future<Output = ()>, ) -> Result<()>
Runs deploy(), and start(), waits for the trigger future, then runs stop().
Sourcepub async fn start_until(
&mut self,
trigger: impl Future<Output = ()>,
) -> Result<()>
pub async fn start_until( &mut self, trigger: impl Future<Output = ()>, ) -> Result<()>
Runs start(), waits for the trigger future, then runs stop().
This is useful if you need to initiate external network connections between
deploy() and start().
Sourcepub async fn run_ctrl_c(&mut self) -> Result<()>
pub async fn run_ctrl_c(&mut self) -> Result<()>
Runs deploy(), and start(), waits for CTRL+C, then runs stop().
Sourcepub async fn start_ctrl_c(&mut self) -> Result<()>
pub async fn start_ctrl_c(&mut self) -> Result<()>
Runs start(), waits for CTRL+C, then runs stop().
This is useful if you need to initiate external network connections between
deploy() and start().
pub async fn deploy(&mut self) -> Result<()>
pub async fn start(&mut self) -> Result<()>
pub async fn stop(&mut self) -> Result<()>
Source§impl Deployment
impl Deployment
Source§impl Deployment
impl Deployment
pub fn GcpComputeEngineHost( &mut self, ) -> AddGcpComputeEngineHostDeploymentBuilder<'_>
Source§impl Deployment
impl Deployment
pub fn AzureHost(&mut self) -> AddAzureHostDeploymentBuilder<'_>
Source§impl Deployment
impl Deployment
pub fn AwsEc2Host(&mut self) -> AddAwsEc2HostDeploymentBuilder<'_>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Deployment
impl !UnwindSafe for Deployment
impl Forget for Deployment
impl Freeze for Deploymentwhere
*const u8 is !null: Freeze,
PhantomData<Weak<dyn Host>>: Freeze,
PhantomData<Weak<dyn Service>>: Freeze,
PhantomData<(u32, Arc<RwLock<TerraformApply>>)>: Freeze,
*const ArcInner<LocalhostHost> is !null: Freeze,
PhantomData<ArcInner<LocalhostHost>>: Freeze,
*const ArcInner<ResourceResult> is !null: Freeze,
PhantomData<ArcInner<ResourceResult>>: Freeze,
impl Move for Deployment
impl Send for Deployment
impl Sync for Deployment
impl Unpin for Deployment
impl UnsafeUnpin for Deploymentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Weak<dyn Host>>: UnsafeUnpin,
PhantomData<Weak<dyn Service>>: UnsafeUnpin,
PhantomData<(u32, Arc<RwLock<TerraformApply>>)>: UnsafeUnpin,
*const ArcInner<LocalhostHost> is !null: UnsafeUnpin,
PhantomData<ArcInner<LocalhostHost>>: UnsafeUnpin,
*const ArcInner<ResourceResult> is !null: UnsafeUnpin,
PhantomData<ArcInner<ResourceResult>>: UnsafeUnpin,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].