Skip to main content

CnsBackingObjectDetailsTrait

Trait CnsBackingObjectDetailsTrait 

Source
pub trait CnsBackingObjectDetailsTrait: DataObjectTrait {
    // Required methods
    fn get_cns_backing_object_details(&self) -> &CnsBackingObjectDetails;
    fn get_cns_backing_object_details_mut(
        &mut self,
    ) -> &mut CnsBackingObjectDetails;
}
Expand description

Base class for providing additional option for creating backing for a container volume.

The child-classes of this class will be used at the time of volume creation to specify options that should be used to create volume, and will also be returned as part of query result to give more information about the volume, CnsVolume. Type of child-class will also serve as the volume type specification during creation.

Backing type specific fields would be there in the respective child classes.

E.g. BlockBackingDetails class will have details related to block type of backing object. One example of such property is ID of the block disk that backs the volume.

This structure may be used only with operations rendered under /vsan.

§How to access

  • CnsVolumeManager::cns_create_volume(create_specs).backing_object_details
  • CnsVolumeManager::cns_query_volume().volumes?[*].backing_object_details?

Required Methods§

Source

fn get_cns_backing_object_details(&self) -> &CnsBackingObjectDetails

Get a reference to the CnsBackingObjectDetails parent struct

Source

fn get_cns_backing_object_details_mut(&mut self) -> &mut CnsBackingObjectDetails

Get a mutable reference to the CnsBackingObjectDetails parent struct

Trait Implementations§

Source§

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

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 CnsBackingObjectDetailsTrait

Source§

type Target = CnsBackingObjectDetails

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for dyn CnsBackingObjectDetailsTrait

Source§

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

Mutably dereferences the value.
Source§

impl Deserialize for Box<dyn CnsBackingObjectDetailsTrait>

Source§

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

The only correct implementation of this method is: Read more

Implementors§