pub struct Treasury { /* private fields */ }Implementations§
Source§impl Treasury
impl Treasury
Sourcepub fn find_from(path: &Path) -> Result<Self>
pub fn find_from(path: &Path) -> Result<Self>
Find and open treasury in ancestors of specified directory.
pub fn new(base: &Path, meta: TreasuryInfo) -> Result<Self>
Sourcepub unsafe fn register_importers_lib(&mut self, lib_path: &Path) -> Result<()>
pub unsafe fn register_importers_lib(&mut self, lib_path: &Path) -> Result<()>
Loads importers from dylib. There is no possible way to guarantee that dylib does not break safety contracts. Some measures to ensure safety are taken. Providing dylib from which importers will be successfully loaded and then cause an UB should possible only on purpose.
Sourcepub async fn store(
&self,
source: &str,
format: Option<&str>,
target: &str,
) -> Result<(AssetId, PathBuf)>
pub async fn store( &self, source: &str, format: Option<&str>, target: &str, ) -> Result<(AssetId, PathBuf)>
Import an asset.
Auto Trait Implementations§
impl !Freeze for Treasury
impl !RefUnwindSafe for Treasury
impl Send for Treasury
impl Sync for Treasury
impl Unpin for Treasury
impl UnwindSafe for Treasury
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