pub enum AssetSource {
Bundle,
UserCache,
None,
}Expand description
Where the resolver found the bundled device renders.
Variants§
Bundle
Read-only assets shipped inside the macOS .app bundle (release builds).
UserCache
The per-user cache populated by the background asset sync.
None
Neither tier was found — devices fall back to the synthetic silhouette.
Trait Implementations§
Source§impl Clone for AssetSource
impl Clone for AssetSource
Source§fn clone(&self) -> AssetSource
fn clone(&self) -> AssetSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AssetSource
Source§impl Debug for AssetSource
impl Debug for AssetSource
Source§impl<'de> Deserialize<'de> for AssetSource
impl<'de> Deserialize<'de> for AssetSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AssetSource
Source§impl PartialEq for AssetSource
impl PartialEq for AssetSource
Source§fn eq(&self, other: &AssetSource) -> bool
fn eq(&self, other: &AssetSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssetSource
impl Serialize for AssetSource
impl StructuralPartialEq for AssetSource
Auto Trait Implementations§
impl Freeze for AssetSource
impl RefUnwindSafe for AssetSource
impl Send for AssetSource
impl Sync for AssetSource
impl Unpin for AssetSource
impl UnsafeUnpin for AssetSource
impl UnwindSafe for AssetSource
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.