[−][src]Struct ec2_instance_metadata::InstanceMetadataClient
InstanceMetadataClient provides an API for fetching common fields
from the EC2 Instance Metadata API: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
Examples:
use ec2_instance_metadata::InstanceMetadataClient; let client = ec2_instance_metadata::InstanceMetadataClient::new(); let instance_metadata = client.get().expect("Couldn't get the instance metadata.");
Implementations
impl InstanceMetadataClient[src]
pub fn new() -> Self[src]
pub fn get(&self) -> Result<InstanceMetadata, Error>[src]
Get the instance metadata for the machine.
Trait Implementations
impl Debug for InstanceMetadataClient[src]
impl Default for InstanceMetadataClient[src]
fn default() -> InstanceMetadataClient[src]
Auto Trait Implementations
impl RefUnwindSafe for InstanceMetadataClient
impl Send for InstanceMetadataClient
impl Sync for InstanceMetadataClient
impl Unpin for InstanceMetadataClient
impl UnwindSafe for InstanceMetadataClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,