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]

pub fn get(
    &self,
    sector_number: SectorNumber
) -> Result<Option<SectorOnChainInfo>, Box<dyn StdError>>
[src]

pub fn store(
    &mut self,
    infos: Vec<SectorOnChainInfo>
) -> Result<(), Box<dyn StdError>>
[src]

pub fn must_get(
    &self,
    sector_number: SectorNumber
) -> Result<SectorOnChainInfo, Box<dyn StdError>>
[src]

Auto Trait Implementations

impl<'db, BS> RefUnwindSafe for Sectors<'db, BS> where
    BS: RefUnwindSafe

impl<'db, BS> Send for Sectors<'db, BS> where
    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

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> 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>,