Expand description
Abstract farm API
This module provides a bunch of traits and simple data structures that serve as a layer of abstraction that improves composition without having assumptions about implementation details.
Implementations can be local (backed by local disk) and remote (connected via network in some way). This crate provides a few of such implementations, but more can be created externally as well if needed without modifying the library itself.
Modules§
- plotted_
pieces - Wrapper for pieces plotted under multiple plots
Structs§
- Auditing
Details - Auditing details
- Decoded
Farming Error - Special decoded farming error
- Piece
Cache Offset - Offset wrapper for pieces in
PieceCache
- Proving
Details - Proving details
Enums§
- FarmId
- An identifier for a farm, can be used for in logs, thread names, etc.
- Farming
Error - Errors that happen during farming
- Farming
Notification - Various farming notifications
- Maybe
Piece Stored Result - Result of piece storing check
- Piece
Cache Id - An identifier for a cache, can be used for in logs, thread names, etc.
- Proving
Result - Result of the proving
- Sector
Expiration Details - Details about sector expiration
- Sector
Plotting Details - Details about sector currently being plotted
- Sector
Update - Various sector updates
Traits§
- Farm
- Abstract farm implementation
- Handler
Id - Opaque handler ID for event handlers, once dropped handler will be removed automatically
- Piece
Cache - Abstract piece cache implementation.
- Piece
Reader - Abstract piece reader implementation
- Plot
Cache - Abstract plot cache implementation.
- Plotted
Sectors - Getter for plotted sectors