[−][src]Struct sector_builder::SectorBuilder
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]
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>
pub fn add_piece(
&self,
piece_key: String,
piece_bytes_amount: u64,
piece_path: String
) -> Result<SectorId>
[src]
&self,
piece_key: String,
piece_bytes_amount: u64,
piece_path: String
) -> Result<SectorId>
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]
&self,
piece_key: String
) -> Result<Vec<u8>>
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]
&self,
comm_rs: &[[u8; 32]],
challenge_seed: &[u8; 32]
) -> Result<GeneratePoStDynamicSectorsCountOutput>
pub fn get_sector_class(&self) -> SectorClass
[src]
Trait Implementations
impl Drop for SectorBuilder
[src]
Auto Trait Implementations
impl Send for SectorBuilder
impl Unpin for SectorBuilder
impl !Sync for SectorBuilder
impl !UnwindSafe for SectorBuilder
impl !RefUnwindSafe for SectorBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self