Enum fil_types::sector::RegisteredSealProof[][src]

pub enum RegisteredSealProof {
    StackedDRG2KiBV1,
    StackedDRG512MiBV1,
    StackedDRG8MiBV1,
    StackedDRG32GiBV1,
    StackedDRG64GiBV1,
    StackedDRG2KiBV1P1,
    StackedDRG512MiBV1P1,
    StackedDRG8MiBV1P1,
    StackedDRG32GiBV1P1,
    StackedDRG64GiBV1P1,
    Invalid(i64),
}
Expand description

Seal proof type which defines the version and sector size.

Variants

StackedDRG2KiBV1

StackedDRG512MiBV1

StackedDRG8MiBV1

StackedDRG32GiBV1

StackedDRG64GiBV1

StackedDRG2KiBV1P1

StackedDRG512MiBV1P1

StackedDRG8MiBV1P1

StackedDRG32GiBV1P1

StackedDRG64GiBV1P1

Invalid(i64)

Tuple Fields

0: i64

Implementations

Returns registered seal proof for given sector size

Convert the original proof type to the v1 proof added in network version 7.

👎 Deprecated since 0.1.10:

Logic should exist in actors

The maximum duration a sector sealed with this proof may exist between activation and expiration.

Proof size for each SealProof type

Returns the sector size of the proof type, which is measured in bytes.

pub fn window_post_partitions_sector(self) -> Result<u64, String>

Returns the partition size, in sectors, associated with a proof type. The partition size is the number of sectors proven in a single PoSt proof.

pub fn registered_winning_post_proof(
    self
) -> Result<RegisteredPoStProof, String>

Produces the winning PoSt-specific RegisteredProof corresponding to the receiving RegisteredProof.

pub fn registered_window_post_proof(self) -> Result<RegisteredPoStProof, String>

Produces the windowed PoSt-specific RegisteredProof corresponding to the receiving RegisteredProof.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.