Struct iroh_blobs::rpc::client::blobs::DownloadOptions
source · pub struct DownloadOptions {
pub format: BlobFormat,
pub nodes: Vec<NodeAddr>,
pub tag: SetTagOption,
pub mode: DownloadMode,
}
Available on crate feature
rpc
only.Expand description
Options to configure a download request.
Fields§
§format: BlobFormat
The format of the data to download.
nodes: Vec<NodeAddr>
Source nodes to download from.
If set to more than a single node, they will all be tried. If mode
is set to
DownloadMode::Direct
, they will be tried sequentially until a download succeeds.
If mode
is set to DownloadMode::Queued
, the nodes may be dialed in parallel,
if the concurrency limits permit.
tag: SetTagOption
Optional tag to tag the data with.
mode: DownloadMode
Whether to directly start the download or add it to the download queue.
Trait Implementations§
source§impl Clone for DownloadOptions
impl Clone for DownloadOptions
source§fn clone(&self) -> DownloadOptions
fn clone(&self) -> DownloadOptions
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 DownloadOptions
impl Debug for DownloadOptions
source§impl<'de> Deserialize<'de> for DownloadOptions
impl<'de> Deserialize<'de> for DownloadOptions
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 DownloadOptions
impl RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl Sync for DownloadOptions
impl Unpin for DownloadOptions
impl UnwindSafe for DownloadOptions
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