Enum bip_disk::ODiskMessage [] [src]

pub enum ODiskMessage {
    TorrentAdded(InfoHash),
    TorrentRemoved(InfoHash),
    FoundGoodPiece(InfoHashu64),
    FoundBadPiece(InfoHashu64),
    BlockLoaded(Block),
    BlockProcessed(Block),
    TorrentError(InfoHashTorrentError),
    BlockError(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 the the torrent has been removed.

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 or ProcessBlock message.

Trait Implementations

impl Debug for ODiskMessage
[src]

Formats the value using the given formatter.