pub enum BootstrapChannel {
CDN {
url: String,
provider: String,
},
Telegram {
bot_username: String,
token: Option<String>,
},
GitHub {
repo: String,
asset_name: String,
},
IPFS {
hash: String,
gateway: Option<String>,
},
Email {
address: String,
subject_pattern: String,
},
}Expand description
Multi-channel bootstrap descriptor distribution.
Each channel represents a different method to fetch bootstrap descriptors. Using multiple channels makes it harder for censors to block all distribution points.
Variants§
CDN
CDN-based distribution (e.g., Cloudflare, AWS CloudFront)
Telegram
Telegram bot-based distribution
Fields
GitHub
GitHub releases/assets distribution
Fields
IPFS
IPFS-based distribution (content-addressed)
Fields
Email-based distribution (for enterprise deployments)
Implementations§
Trait Implementations§
Source§impl Clone for BootstrapChannel
impl Clone for BootstrapChannel
Source§fn clone(&self) -> BootstrapChannel
fn clone(&self) -> BootstrapChannel
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 moreSource§impl Debug for BootstrapChannel
impl Debug for BootstrapChannel
Source§impl<'de> Deserialize<'de> for BootstrapChannel
impl<'de> Deserialize<'de> for BootstrapChannel
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
Auto Trait Implementations§
impl Freeze for BootstrapChannel
impl RefUnwindSafe for BootstrapChannel
impl Send for BootstrapChannel
impl Sync for BootstrapChannel
impl Unpin for BootstrapChannel
impl UnsafeUnpin for BootstrapChannel
impl UnwindSafe for BootstrapChannel
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