pub struct ArtifactManager { /* private fields */ }
Implementations§
Source§impl ArtifactManager
impl ArtifactManager
pub fn new(build_data_root_path: PathBuf) -> Result<Self, String>
pub fn loader(&self) -> &Loader
pub fn storage(&self) -> &ArtifactStorageSet
pub fn add_storage<T>(&mut self)
pub fn add_storage_with_loader<ArtifactDataT, ArtifactT, LoaderT>(
&mut self,
loader: Box<LoaderT>,
)where
ArtifactDataT: TypeUuid + for<'a> Deserialize<'a> + 'static,
ArtifactT: TypeUuid + 'static + Send,
LoaderT: DynArtifactLoader<ArtifactT> + 'static,
pub fn load_artifact<T: TypeUuid + 'static + Send>( &self, artifact_id: ArtifactId, ) -> Handle<T>
pub fn load_artifact_symbol_name<T: TypeUuid + 'static + Send>( &self, symbol_name: &'static str, ) -> Handle<T>
pub fn load_artifact_symbol_string_hash<T: TypeUuid + 'static + Send>( &self, symbol: StringHash, ) -> Handle<T>
pub fn update(&mut self)
Auto Trait Implementations§
impl !Freeze for ArtifactManager
impl RefUnwindSafe for ArtifactManager
impl Send for ArtifactManager
impl Sync for ArtifactManager
impl Unpin for ArtifactManager
impl UnwindSafe for ArtifactManager
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.