Skip to main content

VirtualSoundCardTrait

Trait VirtualSoundCardTrait 

Source
pub trait VirtualSoundCardTrait: VirtualDeviceTrait {
    // Required methods
    fn get_virtual_sound_card(&self) -> &VirtualSoundCard;
    fn get_virtual_sound_card_mut(&mut self) -> &mut VirtualSoundCard;
}
Expand description

This data object type represents a sound card in a virtual machine.

§How to access

  • VirtualMachine::config.hardware.device?[*]⇒VirtualSoundCardTrait
  • StoragePod::pod_storage_drs_entry.recommendation?[*].action?[*]→StoragePlacementAction.relocate_spec.device_change?[*].device⇒VirtualSoundCardTrait
  • StoragePod::pod_storage_drs_entry.recommendation?[*].action?[*]→StorageMigrationAction.relocate_spec.device_change?[*].device⇒VirtualSoundCardTrait
  • StoragePod::pod_storage_drs_entry.recommendation?[*].action?[*]→PlacementAction.relocate_spec?.device_change?[*].device⇒VirtualSoundCardTrait
  • StoragePod::pod_storage_drs_entry.recommendation?[*].action?[*]→ClusterClusterInitialPlacementAction.config_spec?.device_change?[*].device⇒VirtualSoundCardTrait
  • StoragePod::pod_storage_drs_entry.action_history?[*].action→StoragePlacementAction.relocate_spec.device_change?[*].device⇒VirtualSoundCardTrait
  • ClusterComputeResource::action_history.action→StoragePlacementAction.relocate_spec.device_change?[*].device⇒VirtualSoundCardTrait
  • ClusterComputeResource::action_history.action→StorageMigrationAction.relocate_spec.device_change?[*].device⇒VirtualSoundCardTrait
  • ClusterComputeResource::action_history.action→PlacementAction.relocate_spec?.device_change?[*].device⇒VirtualSoundCardTrait
  • ClusterComputeResource::action_history.action→ClusterClusterInitialPlacementAction.config_spec?.device_change?[*].device⇒VirtualSoundCardTrait

(10 of 65 paths)

Required Methods§

Source

fn get_virtual_sound_card(&self) -> &VirtualSoundCard

Get a reference to the VirtualSoundCard parent struct

Source

fn get_virtual_sound_card_mut(&mut self) -> &mut VirtualSoundCard

Get a mutable reference to the VirtualSoundCard parent struct

Trait Implementations§

Source§

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

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 VirtualSoundCardTrait

Source§

type Target = VirtualSoundCard

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for dyn VirtualSoundCardTrait

Source§

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

Mutably dereferences the value.
Source§

impl Deserialize for Box<dyn VirtualSoundCardTrait>

Source§

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

The only correct implementation of this method is: Read more

Implementors§