pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn new(root: PathBuf) -> Self
pub fn object_path(&self, hash: &str, kind: HashKind) -> PathBuf
pub async fn calculate_hash<P: AsRef<Path>>( &self, path: P, kind: HashKind, ) -> ConduitResult<String>
pub async fn add_file<P: AsRef<Path>>( &self, source: P, hash: &str, kind: HashKind, ) -> ConduitResult<()>
pub async fn link_object<P: AsRef<Path>>( &self, hash: &str, kind: HashKind, target: P, ) -> ConduitResult<()>
pub fn get_project_root(&self) -> PathBuf
pub fn get_mods_path(&self) -> PathBuf
pub fn get_plugins_path(&self) -> PathBuf
pub fn get_world_path(&self) -> PathBuf
pub async fn install_to_project( &self, hash: &str, kind: HashKind, rel_path: PathBuf, ) -> ConduitResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin 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