Struct forest_actor::miner::Deadlines[][src]

pub struct Deadlines {
    pub due: Vec<Cid>,
}

Deadlines contains Deadline objects, describing the sectors due at the given deadline and their state (faulty, terminated, recovering, etc.).

Fields

due: Vec<Cid>

Implementations

impl Deadlines[src]

pub fn new(empty_deadline_cid: Cid) -> Self[src]

pub fn load_deadline<BS: BlockStore>(
    &self,
    store: &BS,
    deadline_idx: usize
) -> Result<Deadline, Box<dyn StdError>>
[src]

pub fn for_each<BS: BlockStore>(
    &self,
    store: &BS,
    f: impl FnMut(usize, Deadline) -> Result<(), Box<dyn StdError>>
) -> Result<(), Box<dyn StdError>>
[src]

pub fn update_deadline<BS: BlockStore>(
    &mut self,
    store: &BS,
    deadline_idx: usize,
    deadline: &Deadline
) -> Result<(), Box<dyn StdError>>
[src]

impl Deadlines[src]

pub fn find_sector<BS: BlockStore>(
    &self,
    store: &BS,
    sector_number: SectorNumber
) -> Result<(usize, usize), Box<dyn StdError>>
[src]

Returns the deadline and partition index for a sector number. Returns an error if the sector number is not tracked by self.

Trait Implementations

impl<'de> Deserialize<'de> for Deadlines[src]

impl Serialize for Deadlines[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,