pub struct MountHandle {
pub image_path: String,
pub mount_point: String,
}Expand description
Handle to an acquired mount.
Returned by MountManager::acquire_mount. The holder must call
MountManager::release_mount when the allocation no longer needs
the mount.
Fields§
§image_path: StringPath to the source image (e.g., /images/pytorch-2.5.sqfs).
mount_point: StringWhere the image is mounted (e.g., /run/pact/uenv/pytorch-2.5).
Trait Implementations§
Source§impl Clone for MountHandle
impl Clone for MountHandle
Source§fn clone(&self) -> MountHandle
fn clone(&self) -> MountHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MountHandle
impl Debug for MountHandle
Source§impl<'de> Deserialize<'de> for MountHandle
impl<'de> Deserialize<'de> for MountHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MountHandle
impl RefUnwindSafe for MountHandle
impl Send for MountHandle
impl Sync for MountHandle
impl Unpin for MountHandle
impl UnsafeUnpin for MountHandle
impl UnwindSafe for MountHandle
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