Enum scl_core::download::DownloadSource
source · pub enum DownloadSource {
Default,
BMCLAPI,
MCBBS,
Custom(Url),
}
Expand description
游戏的下载来源,支持和 BMCLAPI 同格式的自定义镜像源
通常国内的镜像源速度是比官方快的,但是更新不如官方的及时
Variants§
Default
全部使用原始来源下载
BMCLAPI
全部使用 BMCLAPI 提供的镜像源下载
为了支持镜像源,在这里鼓励大家前去支持一下:https://afdian.net/a/bangbang93
MCBBS
全部使用 MCBBS 提供的镜像源下载
Custom(Url)
使用符合 BMCLAPI 镜像链接格式的自定义镜像源下载
Trait Implementations§
source§impl Clone for DownloadSource
impl Clone for DownloadSource
source§fn clone(&self) -> DownloadSource
fn clone(&self) -> DownloadSource
Returns a copy 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 DownloadSource
impl Debug for DownloadSource
source§impl Default for DownloadSource
impl Default for DownloadSource
source§impl<'de> Deserialize<'de> for DownloadSource
impl<'de> Deserialize<'de> for DownloadSource
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
source§impl Display for DownloadSource
impl Display for DownloadSource
source§impl FromStr for DownloadSource
impl FromStr for DownloadSource
source§impl PartialEq<DownloadSource> for DownloadSource
impl PartialEq<DownloadSource> for DownloadSource
source§fn eq(&self, other: &DownloadSource) -> bool
fn eq(&self, other: &DownloadSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DownloadSource
impl Serialize for DownloadSource
impl Eq for DownloadSource
impl StructuralEq for DownloadSource
impl StructuralPartialEq for DownloadSource
Auto Trait Implementations§
impl RefUnwindSafe for DownloadSource
impl Send for DownloadSource
impl Sync for DownloadSource
impl Unpin for DownloadSource
impl UnwindSafe for DownloadSource
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.