Enum bip_disk::ODiskMessage [] [src]

pub enum ODiskMessage {
    TorrentAdded(InfoHash),
    TorrentRemoved(InfoHash),
    TorrentSynced(InfoHash),
    FoundGoodPiece(InfoHashu64),
    FoundBadPiece(InfoHashu64),
    BlockLoaded(BlockMut),
    BlockProcessed(Block),
    TorrentError(InfoHashTorrentError),
    LoadBlockError(BlockMutBlockError),
    ProcessBlockError(BlockBlockError),
}

Messages that can be received from the DiskManager.

Variants

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.

Message indicating that the torrent has been removed.

Message indicating that the torrent has been synced.

Message indicating that a good piece has been identified for the given torrent (hash), as well as the piece index.

Message indicating that a bad piece has been identified for the given torrent (hash), as well as the piece index.

Message indicating that the given block has been loaded.

Message indicating that the given block has been processed.

Error occurring from a AddTorrent or RemoveTorrent message.

Error occurring from a LoadBlock message.

Error occurring from a ProcessBlock message.

Trait Implementations

impl Debug for ODiskMessage
[src]

[src]

Formats the value using the given formatter.