Enum iroh_blobs::net_protocol::DownloadMode  
source · pub enum DownloadMode {
    Direct,
    Queued,
}Available on crate feature 
net_protocol only.Expand description
Set the mode for whether to directly start the download or add it to the download queue.
Variants§
Direct
Start the download right away.
No concurrency limits or queuing will be applied. It is up to the user to manage download concurrency.
Queued
Queue the download.
The download queue will be processed in-order, while respecting the downloader concurrency limits.
Trait Implementations§
source§impl Clone for DownloadMode
 
impl Clone for DownloadMode
source§fn clone(&self) -> DownloadMode
 
fn clone(&self) -> DownloadMode
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 DownloadMode
 
impl Debug for DownloadMode
source§impl<'de> Deserialize<'de> for DownloadMode
 
impl<'de> Deserialize<'de> for DownloadMode
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 DownloadMode
impl RefUnwindSafe for DownloadMode
impl Send for DownloadMode
impl Sync for DownloadMode
impl Unpin for DownloadMode
impl UnwindSafe for DownloadMode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
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