pub struct LibraryDir<'a> {
vendor_dir: &'a VendorDir,
path: PathBuf,
lock: Flock<File>,
}Fields§
§vendor_dir: &'a VendorDir§path: PathBuf§lock: Flock<File>Implementations§
Source§impl<'a> LibraryDir<'a>
impl<'a> LibraryDir<'a>
pub fn path(&self) -> &Path
pub fn name(&self) -> String
pub fn library(&self) -> Option<Library>
pub fn contains(&self, config: &Config) -> bool
pub fn remove(&self) -> Result<()>
pub fn make(&self, config: &Config, cput: bool) -> Result<PathBuf>
fn load_metadata(&self) -> Option<Metadata>
fn load_config(&self) -> Option<Config>
fn config_file(&self) -> PathBuf
fn metadata_file(&self) -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LibraryDir<'a>
impl<'a> RefUnwindSafe for LibraryDir<'a>
impl<'a> Send for LibraryDir<'a>
impl<'a> Sync for LibraryDir<'a>
impl<'a> Unpin for LibraryDir<'a>
impl<'a> UnwindSafe for LibraryDir<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more