pub struct GenericHandle { /* private fields */ }Expand description
Handle to an artifact whose type is unknown during loading.
This is returned by Loader::load_artifact_generic for artifacts loaded by UUID.
Implementations§
Source§impl GenericHandle
impl GenericHandle
Trait Implementations§
Source§impl ArtifactHandle for GenericHandle
impl ArtifactHandle for GenericHandle
fn resolved_load_handle(&self) -> &Arc<ResolvedLoadHandle>
Source§fn load_state<T: LoadStateProvider>(&self, loader: &T) -> LoadState
fn load_state<T: LoadStateProvider>(&self, loader: &T) -> LoadState
Returns the load status of the artifact. Read more
fn artifact_id<T: LoadStateProvider>(&self, loader: &T) -> ArtifactId
Source§fn artifact<'a, T, S: TypedArtifactStorage<T>>(
&self,
storage: &'a S,
) -> Option<&'a T>where
Self: Sized,
fn artifact<'a, T, S: TypedArtifactStorage<T>>(
&self,
storage: &'a S,
) -> Option<&'a T>where
Self: Sized,
Returns an immutable reference to the artifact if it is committed. Read more
Source§fn downgrade(&self) -> WeakHandle
fn downgrade(&self) -> WeakHandle
Downgrades this handle into a
WeakHandle. Read moreSource§fn load_handle(&self) -> LoadHandle
fn load_handle(&self) -> LoadHandle
Returns the
LoadHandle of this artifact handle.fn direct_load_handle(&self) -> LoadHandle
Source§impl Clone for GenericHandle
impl Clone for GenericHandle
Source§fn clone(&self) -> GenericHandle
fn clone(&self) -> GenericHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericHandle
impl Debug for GenericHandle
Source§impl<'de> Deserialize<'de> for GenericHandle
impl<'de> Deserialize<'de> for GenericHandle
Source§fn deserialize<D>(deserializer: D) -> Result<GenericHandle, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<GenericHandle, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: ?Sized> From<GenericHandle> for Handle<T>
impl<T: ?Sized> From<GenericHandle> for Handle<T>
Source§fn from(handle: GenericHandle) -> Self
fn from(handle: GenericHandle) -> Self
Converts to this type from the input type.
Source§impl Hash for GenericHandle
impl Hash for GenericHandle
Source§impl PartialEq for GenericHandle
impl PartialEq for GenericHandle
Source§impl Serialize for GenericHandle
impl Serialize for GenericHandle
impl Eq for GenericHandle
impl StructuralPartialEq for GenericHandle
Auto Trait Implementations§
impl Freeze for GenericHandle
impl RefUnwindSafe for GenericHandle
impl Send for GenericHandle
impl Sync for GenericHandle
impl Unpin for GenericHandle
impl UnwindSafe for GenericHandle
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