Skip to main content

VirtualEthernetCardOptionTrait

Trait VirtualEthernetCardOptionTrait 

Source
pub trait VirtualEthernetCardOptionTrait: VirtualDeviceOptionTrait {
    // Required methods
    fn get_virtual_ethernet_card_option(&self) -> &VirtualEthernetCardOption;
    fn get_virtual_ethernet_card_option_mut(
        &mut self,
    ) -> &mut VirtualEthernetCardOption;
}
Expand description

This data object type contains the options for the virtual ethernet card data object type.

§How to access

  • EnvironmentBrowser::query_config_option().hardware_options.virtual_device_option[*]⇒VirtualEthernetCardOptionTrait
  • EnvironmentBrowser::query_config_option_ex().hardware_options.virtual_device_option[*]⇒VirtualEthernetCardOptionTrait

Required Methods§

Source

fn get_virtual_ethernet_card_option(&self) -> &VirtualEthernetCardOption

Get a reference to the VirtualEthernetCardOption parent struct

Source

fn get_virtual_ethernet_card_option_mut( &mut self, ) -> &mut VirtualEthernetCardOption

Get a mutable reference to the VirtualEthernetCardOption parent struct

Trait Implementations§

Source§

impl<From: VimObjectTrait + ?Sized + 'static> CastFrom<From> for dyn VirtualEthernetCardOptionTrait

Source§

fn from_ref<'a>(from: &'a From) -> Option<&'a Self>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn from_box(from: Box<From>) -> Result<Box<Self>, Box<dyn Any + 'static>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
Source§

impl Deref for dyn VirtualEthernetCardOptionTrait

Source§

type Target = VirtualEthernetCardOption

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for dyn VirtualEthernetCardOptionTrait

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Deserialize for Box<dyn VirtualEthernetCardOptionTrait>

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more

Implementors§