pub struct VenvLayout {
pub plugin_path: PathBuf,
pub venv_path: PathBuf,
pub cache_dir: PathBuf,
pub metadata_path: PathBuf,
pub manifest_path: PathBuf,
pub owners_path: PathBuf,
}Expand description
Resolved on-disk layout for one plugin’s venv.
The class root (the first dotted segment of the class name) names the directory, which is what makes plugins in one package share a venv.
Fields§
§plugin_path: PathBufDirectory holding the venv and its cache — <plugin_dir>/<class_root>.
venv_path: PathBufThe virtualenv itself.
cache_dir: PathBufCache-metadata directory.
metadata_path: PathBufThis plugin’s metadata file within cache_dir.
manifest_path: PathBufThis plugin’s persisted manifest.
owners_path: PathBufOwner registry for the shared venv directory. Shared by every plugin
that resolves to this venv_path, unlike metadata_path.
Implementations§
Source§impl VenvLayout
impl VenvLayout
Trait Implementations§
Source§impl Clone for VenvLayout
impl Clone for VenvLayout
Auto Trait Implementations§
impl Freeze for VenvLayout
impl RefUnwindSafe for VenvLayout
impl Send for VenvLayout
impl Sync for VenvLayout
impl Unpin for VenvLayout
impl UnsafeUnpin for VenvLayout
impl UnwindSafe for VenvLayout
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