Struct distill_loader::handle::GenericHandle [−][src]
Handle to an asset whose type is unknown during loading.
This is returned by Loader::load_asset_generic
for assets loaded by UUID.
Implementations
impl GenericHandle
[src]
pub fn new(chan: Sender<RefOp>, handle: LoadHandle) -> Self
[src]
Creates a new handle with HandleRefType::Strong
Trait Implementations
impl AssetHandle for GenericHandle
[src]
fn load_handle(&self) -> LoadHandle
[src]
fn load_status(&self, loader: &Loader) -> LoadStatus
[src]
fn asset<'a, T, S: TypedAssetStorage<T>>(&self, storage: &'a S) -> Option<&'a T> where
Self: Sized,
[src]
Self: Sized,
fn asset_version<T, S: TypedAssetStorage<T>>(&self, storage: &S) -> Option<u32> where
Self: Sized,
[src]
Self: Sized,
fn asset_with_version<'a, T, S: TypedAssetStorage<T>>(
&self,
storage: &'a S
) -> Option<(&'a T, u32)> where
Self: Sized,
[src]
&self,
storage: &'a S
) -> Option<(&'a T, u32)> where
Self: Sized,
fn downgrade(&self) -> WeakHandle
[src]
impl Clone for GenericHandle
[src]
fn clone(&self) -> GenericHandle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GenericHandle
[src]
impl<'de> Deserialize<'de> for GenericHandle
[src]
fn deserialize<D>(deserializer: D) -> Result<GenericHandle, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for GenericHandle
[src]
impl<T: ?Sized> From<GenericHandle> for Handle<T>
[src]
fn from(handle: GenericHandle) -> Self
[src]
impl<T: ?Sized> From<Handle<T>> for GenericHandle
[src]
impl Hash for GenericHandle
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<GenericHandle> for GenericHandle
[src]
fn eq(&self, other: &GenericHandle) -> bool
[src]
fn ne(&self, other: &GenericHandle) -> bool
[src]
impl Serialize for GenericHandle
[src]
impl StructuralEq for GenericHandle
[src]
impl StructuralPartialEq for GenericHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for GenericHandle
impl Send for GenericHandle
impl Sync for GenericHandle
impl Unpin for GenericHandle
impl UnwindSafe for GenericHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,