#[non_exhaustive]pub enum EndpointMode {
IpV4,
IpV6,
}
Expand description
IMDSv2 Endpoint Mode
IMDS can be accessed in two ways:
- Via the IpV4 endpoint:
http://169.254.169.254
- Via the Ipv6 endpoint:
http://[fd00:ec2::254]
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IpV4
IpV4 mode: http://169.254.169.254
This mode is the default unless otherwise specified.
IpV6
IpV6 mode: http://[fd00:ec2::254]
Trait Implementations§
Source§impl Clone for EndpointMode
impl Clone for EndpointMode
Source§fn clone(&self) -> EndpointMode
fn clone(&self) -> EndpointMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EndpointMode
impl Debug for EndpointMode
Auto Trait Implementations§
impl Freeze for EndpointMode
impl RefUnwindSafe for EndpointMode
impl Send for EndpointMode
impl Sync for EndpointMode
impl Unpin for EndpointMode
impl UnwindSafe for EndpointMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Creates a shared type from an unshared type.