Struct forest_actor::miner::Deadlines
source · [−]Expand description
Deadlines contains Deadline objects, describing the sectors due at the given deadline and their state (faulty, terminated, recovering, etc.).
Fields
due: Vec<Cid>
Implementations
pub fn load_deadline<BS: BlockStore>(
&self,
store: &BS,
deadline_idx: usize
) -> Result<Deadline, Box<dyn StdError>>
pub fn for_each<BS: BlockStore>(
&self,
store: &BS,
f: impl FnMut(usize, Deadline) -> Result<(), Box<dyn StdError>>
) -> Result<(), Box<dyn StdError>>
pub fn update_deadline<BS: BlockStore>(
&mut self,
store: &BS,
deadline_idx: usize,
deadline: &Deadline
) -> Result<(), Box<dyn StdError>>
pub fn find_sector<BS: BlockStore>(
&self,
store: &BS,
sector_number: SectorNumber
) -> Result<(usize, usize), Box<dyn StdError>>
pub fn find_sector<BS: BlockStore>(
&self,
store: &BS,
sector_number: SectorNumber
) -> Result<(usize, usize), Box<dyn StdError>>
Returns the deadline and partition index for a sector number.
Returns an error if the sector number is not tracked by self
.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more