pub struct VirtualIpMapping {
pub node_addr: NodeAddr,
pub virtual_ip: Ipv6Addr,
pub mesh_addr: Ipv6Addr,
pub dns_name: String,
pub state: MappingState,
pub created: Instant,
pub last_referenced: Instant,
pub drain_start: Option<Instant>,
pub session_count: u32,
}Expand description
A single virtual IP ↔ FIPS mesh address mapping.
Fields§
§node_addr: NodeAddrThe FIPS node address this mapping is for.
virtual_ip: Ipv6AddrThe virtual IP allocated from the pool.
mesh_addr: Ipv6AddrThe FIPS mesh address (fd00::/8).
dns_name: StringThe DNS name that was queried (e.g. “npub1abc…xyz.fips”).
state: MappingStateCurrent state.
created: InstantWhen this mapping was created.
last_referenced: InstantWhen this mapping was last referenced (DNS query or session).
drain_start: Option<Instant>When draining started (for grace period tracking).
session_count: u32Number of active conntrack sessions.
Trait Implementations§
Source§impl Clone for VirtualIpMapping
impl Clone for VirtualIpMapping
Source§fn clone(&self) -> VirtualIpMapping
fn clone(&self) -> VirtualIpMapping
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 moreAuto Trait Implementations§
impl Freeze for VirtualIpMapping
impl RefUnwindSafe for VirtualIpMapping
impl Send for VirtualIpMapping
impl Sync for VirtualIpMapping
impl Unpin for VirtualIpMapping
impl UnsafeUnpin for VirtualIpMapping
impl UnwindSafe for VirtualIpMapping
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§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 more