Enum bip_disk::ODiskMessage
[−]
[src]
pub enum ODiskMessage { TorrentAdded(InfoHash), TorrentRemoved(InfoHash), FoundGoodPiece(InfoHash, u64), FoundBadPiece(InfoHash, u64), BlockLoaded(Block), BlockProcessed(Block), TorrentError(InfoHash, TorrentError), BlockError(Block, BlockError), }
Messages that can be received from the DiskManager
.
Variants
TorrentAdded(InfoHash)
Message indicating that the torrent has been added.
Any good pieces already existing for the torrent will be sent
as FoundGoodPiece
messages BEFORE this message is sent.
TorrentRemoved(InfoHash)
Message indicating the the torrent has been removed.
FoundGoodPiece(InfoHash, u64)
Message indicating that a good piece has been identified for the given torrent (hash), as well as the piece index.
FoundBadPiece(InfoHash, u64)
Message indicating that a bad piece has been identified for the given torrent (hash), as well as the piece index.
BlockLoaded(Block)
Message indicating that the given block has been loaded.
BlockProcessed(Block)
Message indicating that the given block has been processed.
TorrentError(InfoHash, TorrentError)
Error occurring from a AddTorrent
or RemoveTorrent
message.
BlockError(Block, BlockError)
Error occurring from a LoadBlock
or ProcessBlock
message.