#[non_exhaustive]pub struct MmdsConfig {
pub version: MmdsVersion,
pub network_interfaces: Vec<IfaceId>,
pub ipv4_address: Ipv4Addr,
pub imds_compat: bool,
pub token_ttl_seconds: u64,
}Expand description
Validated /mmds/config PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: MmdsVersionMMDS protocol version.
network_interfaces: Vec<IfaceId>Validated iface_ids.
ipv4_address: Ipv4AddrResolved IMDS IPv4 (always link-local).
imds_compat: boolIMDS-compat flag.
token_ttl_seconds: u64Validated V2 token TTL (1..=21600).
Trait Implementations§
Source§impl Clone for MmdsConfig
impl Clone for MmdsConfig
Source§fn clone(&self) -> MmdsConfig
fn clone(&self) -> MmdsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MmdsConfig
impl Debug for MmdsConfig
Source§impl Serialize for MmdsConfig
impl Serialize for MmdsConfig
Source§impl TryFrom<RawMmdsConfig> for MmdsConfig
impl TryFrom<RawMmdsConfig> for MmdsConfig
Auto Trait Implementations§
impl Freeze for MmdsConfig
impl RefUnwindSafe for MmdsConfig
impl Send for MmdsConfig
impl Sync for MmdsConfig
impl Unpin for MmdsConfig
impl UnsafeUnpin for MmdsConfig
impl UnwindSafe for MmdsConfig
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