package torrent
+import (
+ "github.com/anacrolix/torrent/storage"
+)
+
// The current state of a piece.
type PieceState struct {
Priority piecePriority
- // The piece is available in its entirety.
- Complete bool
- // The piece is being hashed, or is queued for hash.
+ storage.Completion
+ // The piece is being hashed, or is queued for hash. Deprecated: Use those fields instead.
Checking bool
+
+ Hashing bool
+ QueuedForHash bool
+ // The piece state is being marked in the storage.
+ Marking bool
+
// Some of the piece has been obtained.
Partial bool
}