pub struct Instance { /* private fields */ }
Implementations§
Source§impl Instance
impl Instance
pub fn try_from_aws(instance: Instance) -> Result<Self, Error>
pub fn get_tag(&self, key: TagKey) -> Option<&RawTag>
pub const fn instance_type(&self) -> &InstanceType
pub const fn state(&self) -> &InstanceStateName
pub const fn instance_id(&self) -> &InstanceId
pub const fn image_id(&self) -> &AmiId
pub const fn subnet_id(&self) -> &SubnetId
pub const fn public_ip_address(&self) -> Option<&Ip>
pub async fn stop(&self, client: &RegionClient) -> Result<(), Error>
pub async fn wait_for_stop( &self, client: &RegionClient, max_wait: Duration, ) -> Result<(), Error>
pub async fn add_tag<T>( &self, client: &RegionClient, tag: Tag<T>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnwindSafe for Instance
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreCreates a shared type from an unshared type.