pub struct ServiceNetwork { /* private fields */ }Expand description
Options for one service attachment to a network.
Implementations§
Source§impl ServiceNetwork
impl ServiceNetwork
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete attachment span.
Sourcepub const fn interface_name(&self) -> Option<&Located<String>>
pub const fn interface_name(&self) -> Option<&Located<String>>
Returns the requested interface name.
Sourcepub const fn ipv4_address(&self) -> Option<&Located<String>>
pub const fn ipv4_address(&self) -> Option<&Located<String>>
Returns the requested IPv4 address.
Sourcepub const fn ipv6_address(&self) -> Option<&Located<String>>
pub const fn ipv6_address(&self) -> Option<&Located<String>>
Returns the requested IPv6 address.
Sourcepub fn link_local_ips(&self) -> &[Located<String>]
pub fn link_local_ips(&self) -> &[Located<String>]
Returns link-local addresses.
Sourcepub const fn mac_address(&self) -> Option<&Located<String>>
pub const fn mac_address(&self) -> Option<&Located<String>>
Returns the network-scoped MAC address.
Sourcepub fn driver_opts(&self) -> &[KeyValueEntry]
pub fn driver_opts(&self) -> &[KeyValueEntry]
Returns driver options in authored order.
Sourcepub const fn gw_priority(&self) -> Option<&Located<String>>
pub const fn gw_priority(&self) -> Option<&Located<String>>
Returns the default-gateway priority without applying interpolation or defaults.
Sourcepub const fn priority(&self) -> Option<&Located<String>>
pub const fn priority(&self) -> Option<&Located<String>>
Returns connection priority without applying interpolation or defaults.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized attachment fields.
Trait Implementations§
Source§impl Clone for ServiceNetwork
impl Clone for ServiceNetwork
Source§fn clone(&self) -> ServiceNetwork
fn clone(&self) -> ServiceNetwork
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 ServiceNetwork
impl Debug for ServiceNetwork
impl Eq for ServiceNetwork
Source§impl PartialEq for ServiceNetwork
impl PartialEq for ServiceNetwork
impl StructuralPartialEq for ServiceNetwork
Auto Trait Implementations§
impl Freeze for ServiceNetwork
impl RefUnwindSafe for ServiceNetwork
impl Send for ServiceNetwork
impl Sync for ServiceNetwork
impl Unpin for ServiceNetwork
impl UnsafeUnpin for ServiceNetwork
impl UnwindSafe for ServiceNetwork
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