#[non_exhaustive]pub struct BinDir(pub PathBuf);Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: PathBufImplementations§
Source§impl BinDir
impl BinDir
pub const CURRENT_VERSION_DIR_NAME: &str = "current"
pub fn version_dir(&self, version: &str) -> VersionBinDir
pub fn current_version_dir(&self) -> VersionBinDir
pub fn set_current_version(&self, version: &str) -> Result<()>
pub fn current_version(&self) -> Result<Option<String>>
pub fn installed_versions(&self) -> Result<Vec<String>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BinDir
impl<'de> Deserialize<'de> for BinDir
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
Source§impl FromPathUnchecked for BinDir
impl FromPathUnchecked for BinDir
Source§fn from_path_unchecked(path: impl Into<PathBuf>) -> Self
fn from_path_unchecked(path: impl Into<PathBuf>) -> Self
The responsibility is on the caller to verify that the path is valid
for this directory structure node.
Auto Trait Implementations§
impl Freeze for BinDir
impl RefUnwindSafe for BinDir
impl Send for BinDir
impl Sync for BinDir
impl Unpin for BinDir
impl UnwindSafe for BinDir
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