Struct forest_actor::miner::Deadlines [−][src]
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
impl Deadlines
[src]
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]
&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>>
[src]
&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>>
[src]
&mut self,
store: &BS,
deadline_idx: usize,
deadline: &Deadline
) -> Result<(), Box<dyn StdError>>
impl Deadlines
[src]
impl Deadlines
[src]pub fn find_sector<BS: BlockStore>(
&self,
store: &BS,
sector_number: SectorNumber
) -> Result<(usize, usize), Box<dyn StdError>>
[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<'de> Deserialize<'de> for Deadlines
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Deadlines
impl Send for Deadlines
impl Sync for Deadlines
impl Unpin for Deadlines
impl UnwindSafe for Deadlines
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,