pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn new(path: PathBuf) -> Result<Self>
pub fn default() -> Result<Self>
pub fn get(&self, name: &str, dst: Option<PathBuf>) -> Result<()>
pub fn config_path(&self) -> PathBuf
pub fn store_dir(&self) -> PathBuf
pub fn add(&mut self, path: &Path) -> Result<()>
pub fn list(&self) -> Vec<&str>
pub fn delete(&mut self, name: &str) -> Result<()>
pub fn info(&self) -> Result<String>
pub fn pull(&mut self, address: String, port: Option<String>) -> Result<()>
pub fn push( &self, address: String, port: Option<String>, force: bool, ) -> Result<()>
pub fn test(&self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Store
impl<'de> Deserialize<'de> for Store
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 Store
impl !RefUnwindSafe for Store
impl !Send for Store
impl !Sync for Store
impl Unpin for Store
impl !UnwindSafe for Store
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