pub struct LaunchedEc2Instance {
pub internal_ip: String,
pub external_ip: Option<String>,
/* private fields */
}
Fields§
§internal_ip: String
§external_ip: Option<String>
Trait Implementations§
Source§impl LaunchedSshHost for LaunchedEc2Instance
impl LaunchedSshHost for LaunchedEc2Instance
fn get_external_ip(&self) -> Option<String>
fn get_internal_ip(&self) -> String
fn get_cloud_provider(&self) -> String
fn resource_result(&self) -> &Arc<ResourceResult>
fn ssh_user(&self) -> &str
fn ssh_key_path(&self) -> PathBuf
fn open_ssh_session<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AsyncSession<NoCheckHandler>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for LaunchedEc2Instance
impl RefUnwindSafe for LaunchedEc2Instance
impl Send for LaunchedEc2Instance
impl Sync for LaunchedEc2Instance
impl Unpin for LaunchedEc2Instance
impl UnwindSafe for LaunchedEc2Instance
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 moreSource§impl<T> LaunchedHost for Twhere
T: LaunchedSshHost,
impl<T> LaunchedHost for Twhere
T: LaunchedSshHost,
Source§fn base_server_config(&self, bind_type: &BaseServerStrategy) -> ServerBindConfig
fn base_server_config(&self, bind_type: &BaseServerStrategy) -> ServerBindConfig
Given a pre-selected network type, computes concrete information needed for a service
to listen to network connections (such as the IP address to bind to).
fn copy_binary<'life0, 'life1, 'async_trait>(
&'life0 self,
binary: &'life1 BuildOutput,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn launch_binary<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: String,
binary: &'life1 BuildOutput,
args: &'life2 [String],
tracing: Option<TracingOptions>,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn LaunchedBinary>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn forward_port<'life0, 'life1, 'async_trait>(
&'life0 self,
addr: &'life1 SocketAddr,
) -> Pin<Box<dyn Future<Output = Result<SocketAddr, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn server_config(&self, strategy: &ServerStrategy) -> ServerBindConfig
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§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
].