HostHardwareElementInfoTrait

Trait HostHardwareElementInfoTrait 

Source
pub trait HostHardwareElementInfoTrait: DataObjectTrait {
    // Required methods
    fn get_name(&self) -> &str;
    fn get_status(&self) -> &Box<dyn ElementDescriptionTrait>;
}
Expand description

Data object describing the operational status of a physical element.

Required Methods§

Source

fn get_name(&self) -> &str

The name of the physical element

Source

fn get_status(&self) -> &Box<dyn ElementDescriptionTrait>

The operational status of the physical element.

The status is one of the values specified in HostHardwareElementStatus.

See also HostHardwareElementStatus_enum.

Trait Implementations§

Source§

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

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<'de> Deserialize<'de> for Box<dyn HostHardwareElementInfoTrait>

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'s> Serialize for dyn HostHardwareElementInfoTrait + 's

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§