pub struct IpAllocatorState {
pub cidr: String,
pub allocated: Vec<IpAddr>,
}Expand description
Persistent state for IP allocator
Fields§
§cidr: StringCIDR string
allocated: Vec<IpAddr>List of allocated IPs (serializes as strings, backward-compatible)
Trait Implementations§
Source§impl Clone for IpAllocatorState
impl Clone for IpAllocatorState
Source§fn clone(&self) -> IpAllocatorState
fn clone(&self) -> IpAllocatorState
Returns a duplicate 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 IpAllocatorState
impl Debug for IpAllocatorState
Source§impl<'de> Deserialize<'de> for IpAllocatorState
impl<'de> Deserialize<'de> for IpAllocatorState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IpAllocatorState
impl RefUnwindSafe for IpAllocatorState
impl Send for IpAllocatorState
impl Sync for IpAllocatorState
impl Unpin for IpAllocatorState
impl UnsafeUnpin for IpAllocatorState
impl UnwindSafe for IpAllocatorState
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