#[non_exhaustive]pub struct LogicalInterface {
pub name: String,
pub type: InterfaceType,
pub required: bool,
/* private fields */
}Expand description
Logical interface.
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.name: StringInterface name. This is not a globally unique identifier. Name is unique only inside the ServerNetworkTemplate. This is of syntax <bond><interface_type_index><bond_mode> or <nic><interface_type_index> and forms part of the network template name.
type: InterfaceTypeInterface type.
required: boolIf true, interface must have network connected.
Implementations§
Trait Implementations§
Source§impl Clone for LogicalInterface
impl Clone for LogicalInterface
Source§fn clone(&self) -> LogicalInterface
fn clone(&self) -> LogicalInterface
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 LogicalInterface
impl Debug for LogicalInterface
Source§impl Default for LogicalInterface
impl Default for LogicalInterface
Source§fn default() -> LogicalInterface
fn default() -> LogicalInterface
Returns the “default value” for a type. Read more
Source§impl Message for LogicalInterface
impl Message for LogicalInterface
Source§impl PartialEq for LogicalInterface
impl PartialEq for LogicalInterface
impl StructuralPartialEq for LogicalInterface
Auto Trait Implementations§
impl Freeze for LogicalInterface
impl RefUnwindSafe for LogicalInterface
impl Send for LogicalInterface
impl Sync for LogicalInterface
impl Unpin for LogicalInterface
impl UnwindSafe for LogicalInterface
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