Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expand on the DownloadProgressInitialState struct #127

Open
Tracked by #128
ramfox opened this issue Apr 29, 2024 · 1 comment
Open
Tracked by #128

expand on the DownloadProgressInitialState struct #127

ramfox opened this issue Apr 29, 2024 · 1 comment

Comments

@ramfox
Copy link
Contributor

ramfox commented Apr 29, 2024

The struct contains more fields than what we currently provide. Let's get this on par with iroh core.

@ramfox ramfox mentioned this issue Apr 29, 2024
2 tasks
@ramfox
Copy link
Contributor Author

ramfox commented Oct 10, 2024

/// Accumulated progress state of a transfer.
#[derive(Debug, Clone, Serialize, Deserialize, Eq, PartialEq)]
pub struct TransferState {
    /// The root blob of this transfer (may be a hash seq),
    pub root: BlobState,
    /// Whether we are connected to a node
    pub connected: bool,
    /// Children if the root blob is a hash seq, empty for raw blobs
    pub children: HashMap<NonZeroU64, BlobState>,
    /// Child being transferred at the moment.
    pub current: Option<BlobId>,
    /// Progress ids for individual blobs.
    pub progress_id_to_blob: HashMap<ProgressId, BlobId>,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant