pub struct AddressParameters {
pub initial_properties: Option<AddressProperties>,
pub temporary: Option<bool>,
pub add_subnet_route: Option<bool>,
/* private fields */
}
Expand description
Address assignment parameters.
Fields§
§initial_properties: Option<AddressProperties>
The initial properties of the address.
If not set, interpreted as an empty AddressProperties
.
temporary: Option<bool>
True if the address is temporary.
A temporary address is intended to be used for a short period of time (hours to days), and its lifetime may not be extended, as detailed in RFC 4941.
Both temporary and non-temporary addresses have preferred and valid lifetimes, but temporary addresses may not be renewed beyond their initial lifetime.
Information used in source address selection; temporary addresses are preferred over non-temporary addresses if both types are available, as detailed in RFC 6724, section 5.
If not set, interpreted as false.
add_subnet_route: Option<bool>
True if the subnet route corresponding to the address should be installed, and removed once the address is removed.
For example, if Control#AddAddress
is called with 192.168.1.5/24, and
add_subnet_route
is true, then a route with destination 192.168.1.0/24
will be installed through the interface the address is being added to.
If the address is removed for any reason, the route will also be
removed.
Trait Implementations§
Source§impl Clone for AddressParameters
impl Clone for AddressParameters
Source§fn clone(&self) -> AddressParameters
fn clone(&self) -> AddressParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AddressParameters
impl Debug for AddressParameters
Source§impl<D: ResourceDialect> Decode<AddressParameters, D> for AddressParameters
impl<D: ResourceDialect> Decode<AddressParameters, D> for AddressParameters
Source§impl Default for AddressParameters
impl Default for AddressParameters
Source§fn default() -> AddressParameters
fn default() -> AddressParameters
Source§impl<D: ResourceDialect> Encode<AddressParameters, D> for &AddressParameters
impl<D: ResourceDialect> Encode<AddressParameters, D> for &AddressParameters
Source§impl PartialEq for AddressParameters
impl PartialEq for AddressParameters
Source§impl TypeMarker for AddressParameters
impl TypeMarker for AddressParameters
Source§type Owned = AddressParameters
type Owned = AddressParameters
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for AddressParameters
impl ValueTypeMarker for AddressParameters
Source§type Borrowed<'a> = &'a AddressParameters
type Borrowed<'a> = &'a AddressParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for AddressParameters
impl StructuralPartialEq for AddressParameters
Auto Trait Implementations§
impl Freeze for AddressParameters
impl RefUnwindSafe for AddressParameters
impl Send for AddressParameters
impl Sync for AddressParameters
impl Unpin for AddressParameters
impl UnwindSafe for AddressParameters
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
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)
clone_to_uninit
)