pub struct ContainerDeviceBuilder<___State = __ContainerDeviceBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__ContainerPath, __HostPath, __Permissions> ContainerDeviceBuilder<(__ContainerPath, __HostPath, __Permissions)>
impl<__ContainerPath, __HostPath, __Permissions> ContainerDeviceBuilder<(__ContainerPath, __HostPath, __Permissions)>
sourcepub fn build_struct(self) -> ContainerDevice
pub fn build_struct(self) -> ContainerDevice
Finishes building and returns the requested object.
sourcepub fn maybe_container_path(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerDeviceBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
pub fn maybe_container_path(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerDeviceBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
Same as [Self::r#container_path
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn container_path(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerDeviceBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
pub fn container_path(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerDeviceBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
The path in the container where the device will be bound.
sourcepub fn host_path(
self,
value: impl Into<Box<String>>,
) -> <Self as __ContainerDeviceBuilderSetMember>::HostPathwhere
__HostPath: IsUnset,
pub fn host_path(
self,
value: impl Into<Box<String>>,
) -> <Self as __ContainerDeviceBuilderSetMember>::HostPathwhere
__HostPath: IsUnset,
The path on the host where the device is located.
Auto Trait Implementations§
impl<___State> Freeze for ContainerDeviceBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ContainerDeviceBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ContainerDeviceBuilder<___State>where
___State: Send,
impl<___State> Sync for ContainerDeviceBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ContainerDeviceBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ContainerDeviceBuilder<___State>where
___State: UnwindSafe,
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