[][src]Struct sector_builder::SectorBuilder

pub struct SectorBuilder { /* fields omitted */ }

Methods

impl SectorBuilder[src]

pub fn init_from_metadata<S: Into<String>>(
    sector_class: SectorClass,
    last_committed_sector_id: SectorId,
    metadata_dir: S,
    prover_id: [u8; 31],
    sealed_sector_dir: S,
    staged_sector_dir: S,
    max_num_staged_sectors: u8
) -> Result<SectorBuilder>
[src]

pub fn add_piece(
    &self,
    piece_key: String,
    piece_bytes_amount: u64,
    piece_path: String
) -> Result<SectorId>
[src]

pub fn get_seal_status(&self, sector_id: SectorId) -> Result<SealStatus>[src]

pub fn read_piece_from_sealed_sector(
    &self,
    piece_key: String
) -> Result<Vec<u8>>
[src]

pub fn seal_all_staged_sectors(&self) -> Result<()>[src]

pub fn get_sealed_sectors(&self) -> Result<Vec<SealedSectorMetadata>>[src]

pub fn get_staged_sectors(&self) -> Result<Vec<StagedSectorMetadata>>[src]

pub fn generate_post(
    &self,
    comm_rs: &[[u8; 32]],
    challenge_seed: &[u8; 32]
) -> Result<GeneratePoStDynamicSectorsCountOutput>
[src]

pub fn get_sector_class(&self) -> SectorClass[src]

Trait Implementations

impl Drop for SectorBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self