Struct forest_actor::miner::Sectors [−][src]
pub struct Sectors<'db, BS> { pub amt: Amt<'db, SectorOnChainInfo, BS>, }
Fields
amt: Amt<'db, SectorOnChainInfo, BS>
Implementations
impl<'db, BS: BlockStore> Sectors<'db, BS>
[src]
pub fn load(store: &'db BS, root: &Cid) -> Result<Self, AmtError>
[src]
pub fn load_sector<'a>(
&self,
sector_numbers: impl Validate<'a>
) -> Result<Vec<SectorOnChainInfo>, ActorError>
[src]
&self,
sector_numbers: impl Validate<'a>
) -> Result<Vec<SectorOnChainInfo>, ActorError>
pub fn get(
&self,
sector_number: SectorNumber
) -> Result<Option<SectorOnChainInfo>, Box<dyn StdError>>
[src]
&self,
sector_number: SectorNumber
) -> Result<Option<SectorOnChainInfo>, Box<dyn StdError>>
pub fn store(
&mut self,
infos: Vec<SectorOnChainInfo>
) -> Result<(), Box<dyn StdError>>
[src]
&mut self,
infos: Vec<SectorOnChainInfo>
) -> Result<(), Box<dyn StdError>>
pub fn must_get(
&self,
sector_number: SectorNumber
) -> Result<SectorOnChainInfo, Box<dyn StdError>>
[src]
&self,
sector_number: SectorNumber
) -> Result<SectorOnChainInfo, Box<dyn StdError>>
pub fn load_for_proof(
&self,
proven_sectors: &BitField,
expected_faults: &BitField
) -> Result<Vec<SectorOnChainInfo>, Box<dyn StdError>>
[src]
&self,
proven_sectors: &BitField,
expected_faults: &BitField
) -> Result<Vec<SectorOnChainInfo>, Box<dyn StdError>>
Loads info for a set of sectors to be proven. If any of the sectors are declared faulty and not to be recovered, info for the first non-faulty sector is substituted instead. If any of the sectors are declared recovered, they are returned from this method.
pub fn load_with_fault_max(
&self,
sectors: &BitField,
faults: &BitField,
fault_stand_in: SectorNumber
) -> Result<Vec<SectorOnChainInfo>, Box<dyn StdError>>
[src]
&self,
sectors: &BitField,
faults: &BitField,
fault_stand_in: SectorNumber
) -> Result<Vec<SectorOnChainInfo>, Box<dyn StdError>>
Loads sector info for a sequence of sectors, substituting info for a stand-in sector for any that are faulty.
Auto Trait Implementations
impl<'db, BS> RefUnwindSafe for Sectors<'db, BS> where
BS: RefUnwindSafe,
BS: RefUnwindSafe,
impl<'db, BS> Send for Sectors<'db, BS> where
BS: Sync,
BS: Sync,
impl<'db, BS> !Sync for Sectors<'db, BS>
impl<'db, BS> Unpin for Sectors<'db, BS>
impl<'db, BS> UnwindSafe for Sectors<'db, BS> where
BS: RefUnwindSafe,
BS: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,