Struct hydro_deploy::azure::AzureHost
source · pub struct AzureHost {
pub launched: OnceLock<Arc<LaunchedVirtualMachine>>,
/* private fields */
}
Fields§
§launched: OnceLock<Arc<LaunchedVirtualMachine>>
Implementations§
Trait Implementations§
source§impl Host for AzureHost
impl Host for AzureHost
fn target_type(&self) -> HostTargetType
fn request_port(&self, bind_type: &ServerStrategy)
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,
) -> Result<(ClientStrategy<'a>, HostStrategyGetter)>
fn strategy_as_server<'a>( &'a self, client_host: &dyn Host, ) -> 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.
Auto Trait Implementations§
impl !Freeze for AzureHost
impl RefUnwindSafe for AzureHost
impl Send for AzureHost
impl Sync for AzureHost
impl Unpin for AzureHost
impl UnwindSafe for AzureHost
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more