pub enum AssetSourcePreference {
Automatic,
OpenLogi,
Cloudflare,
Fastly,
}Expand description
Preferred source for on-demand device assets.
Automatic races every built-in mirror; the other variants pin a sync to
one source. The GUI maps this persisted preference to the shared asset
client’s source type, keeping endpoint URLs and npm routing out of config.
Variants§
Automatic
Use the first healthy built-in mirror.
OpenLogi
Use OpenLogi’s official asset endpoint.
Cloudflare
Use the versioned endpoint on Cloudflare’s network.
Fastly
Use the versioned npm packages through Fastly’s network.
Trait Implementations§
Source§impl Clone for AssetSourcePreference
impl Clone for AssetSourcePreference
Source§fn clone(&self) -> AssetSourcePreference
fn clone(&self) -> AssetSourcePreference
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 AssetSourcePreference
Source§impl Debug for AssetSourcePreference
impl Debug for AssetSourcePreference
Source§impl Default for AssetSourcePreference
impl Default for AssetSourcePreference
Source§fn default() -> AssetSourcePreference
fn default() -> AssetSourcePreference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssetSourcePreference
impl<'de> Deserialize<'de> for AssetSourcePreference
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 AssetSourcePreference
Source§impl PartialEq for AssetSourcePreference
impl PartialEq for AssetSourcePreference
Source§impl Serialize for AssetSourcePreference
impl Serialize for AssetSourcePreference
impl StructuralPartialEq for AssetSourcePreference
Auto Trait Implementations§
impl Freeze for AssetSourcePreference
impl RefUnwindSafe for AssetSourcePreference
impl Send for AssetSourcePreference
impl Sync for AssetSourcePreference
impl Unpin for AssetSourcePreference
impl UnsafeUnpin for AssetSourcePreference
impl UnwindSafe for AssetSourcePreference
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.