pub struct Vtl2StorageBackingDeviceBuilder { /* private fields */ }Expand description
A builder for a physical device that will back a VTL2 LUN. This is the
storage that is presented from the host OS to VTL2. A single VTL2 lun can
have zero, one, or multiple backing devices (see Vtl2LunBuilder for more
details on that).
Implementations§
Source§impl Vtl2StorageBackingDeviceBuilder
impl Vtl2StorageBackingDeviceBuilder
Sourcepub fn new(
device_type: ControllerType,
device_path: Guid,
sub_device_path: u32,
) -> Self
pub fn new( device_type: ControllerType, device_path: Guid, sub_device_path: u32, ) -> Self
Creates a new physical device builder.
device_type is the type of device presented to VTL2. device_path is
the path to the device. Since both SCSI and NVMe are really just VMBUS
devices, this is the VMBUS instance id (a.k.a the vsid).
sub_device_path is the SCSI target id or NVMe namespace id within that
device.
IDE is not supported as a VTL2 backing device.
Sourcepub fn build(self) -> PhysicalDevice
pub fn build(self) -> PhysicalDevice
Builds the physical device into the protobuf type used by VTL2 settings.
Trait Implementations§
Source§impl PartialEq for Vtl2StorageBackingDeviceBuilder
impl PartialEq for Vtl2StorageBackingDeviceBuilder
Source§fn eq(&self, other: &Vtl2StorageBackingDeviceBuilder) -> bool
fn eq(&self, other: &Vtl2StorageBackingDeviceBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Vtl2StorageBackingDeviceBuilder
impl StructuralPartialEq for Vtl2StorageBackingDeviceBuilder
Auto Trait Implementations§
impl Freeze for Vtl2StorageBackingDeviceBuilder
impl RefUnwindSafe for Vtl2StorageBackingDeviceBuilder
impl Send for Vtl2StorageBackingDeviceBuilder
impl Sync for Vtl2StorageBackingDeviceBuilder
impl Unpin for Vtl2StorageBackingDeviceBuilder
impl UnwindSafe for Vtl2StorageBackingDeviceBuilder
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.