pub struct AwsEc2Host {
pub launched: OnceLock<Arc<LaunchedEc2Instance>>,
/* private fields */
}Fields§
§launched: OnceLock<Arc<LaunchedEc2Instance>>Implementations§
Trait Implementations§
Source§impl Debug for AwsEc2Host
impl Debug for AwsEc2Host
Source§impl Host for AwsEc2Host
impl Host for AwsEc2Host
fn target_type(&self) -> HostTargetType
fn request_port_base(&self, bind_type: &BaseServerStrategy)
Source§fn request_custom_binary(&self)
fn request_custom_binary(&self)
Configures the host to support copying and running a custom binary.
Source§fn collect_resources(&self, resource_batch: &mut ResourceBatch)
fn collect_resources(&self, resource_batch: &mut ResourceBatch)
Makes requests for physical resources (servers) that this host needs to run. Read more
fn launched(&self) -> Option<Arc<dyn LaunchedHost>>
Source§fn provision(
&self,
resource_result: &Arc<ResourceResult>,
) -> Arc<dyn LaunchedHost>
fn provision( &self, resource_result: &Arc<ResourceResult>, ) -> Arc<dyn LaunchedHost>
Connects to the acquired resources and prepares the host to run services. Read more
Source§fn strategy_as_server<'a>(
&'a self,
client_host: &dyn Host,
network_hint: PortNetworkHint,
) -> Result<(ClientStrategy<'a>, HostStrategyGetter)>
fn strategy_as_server<'a>( &'a self, client_host: &dyn Host, network_hint: PortNetworkHint, ) -> Result<(ClientStrategy<'a>, HostStrategyGetter)>
Identifies a network type that this host can use for connections if it is the server.
The host will be
None if the connection is from the same host as the target.Source§fn can_connect_to(&self, typ: ClientStrategy<'_>) -> bool
fn can_connect_to(&self, typ: ClientStrategy<'_>) -> bool
Determines whether this host can connect to another host using the given strategy.
fn request_port(&self, bind_type: &ServerStrategy)
Auto Trait Implementations§
impl !Freeze for AwsEc2Host
impl !RefUnwindSafe for AwsEc2Host
impl Send for AwsEc2Host
impl Sync for AwsEc2Host
impl Unpin for AwsEc2Host
impl !UnwindSafe for AwsEc2Host
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].