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§
- Wrapper for pieces plotted under multiple plots
Structs§
- Auditing details
- Special decoded farming error
- Offset wrapper for pieces in
PieceCache
- Proving details
Enums§
- An identifier for a farm, can be used for in logs, thread names, etc.
- Errors that happen during farming
- Various farming notifications
- Result of piece storing check
- An identifier for a cache, can be used for in logs, thread names, etc.
- Result of the proving
- Details about sector expiration
- Details about sector currently being plotted
- Various sector updates
Traits§
- Abstract farm implementation
- Opaque handler ID for event handlers, once dropped handler will be removed automatically
- Abstract piece cache implementation.
- Abstract piece reader implementation
- Abstract plot cache implementation.
- Getter for plotted sectors
Type Aliases§
- Erased error type
- Type alias used for event handlers