Enum fil_types::sector::RegisteredPoStProof [−][src]
pub enum RegisteredPoStProof { StackedDRGWinning2KiBV1, StackedDRGWinning8MiBV1, StackedDRGWinning512MiBV1, StackedDRGWinning32GiBV1, StackedDRGWinning64GiBV1, StackedDRGWindow2KiBV1, StackedDRGWindow8MiBV1, StackedDRGWindow512MiBV1, StackedDRGWindow32GiBV1, StackedDRGWindow64GiBV1, Invalid(i64), }
Proof of spacetime type, indicating version and sector size of the proof.
Variants
Invalid(i64)
Implementations
impl RegisteredPoStProof
[src]
pub fn sector_size(self) -> Result<SectorSize, String>
[src]
Returns the sector size of the proof type, which is measured in bytes.
pub fn registered_seal_proof(self) -> Result<RegisteredSealProof, String>
[src]
RegisteredSealProof produces the seal-specific RegisteredProof corresponding to the receiving RegisteredProof.
pub fn proof_size(self) -> Result<usize, String>
[src]
Proof size for each PoStProof type
pub fn window_post_partitions_sector(self) -> Result<u64, String>
[src]
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.
Trait Implementations
impl Clone for RegisteredPoStProof
[src]
fn clone(&self) -> RegisteredPoStProof
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RegisteredPoStProof
[src]
impl Debug for RegisteredPoStProof
[src]
impl<'de> Deserialize<'de> for RegisteredPoStProof
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for RegisteredPoStProof
[src]
impl From<i64> for RegisteredPoStProof
[src]
impl Hash for RegisteredPoStProof
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RegisteredPoStProof> for RegisteredPoStProof
[src]
fn eq(&self, other: &RegisteredPoStProof) -> bool
[src]
fn ne(&self, other: &RegisteredPoStProof) -> bool
[src]
impl Serialize for RegisteredPoStProof
[src]
impl StructuralEq for RegisteredPoStProof
[src]
impl StructuralPartialEq for RegisteredPoStProof
[src]
Auto Trait Implementations
impl RefUnwindSafe for RegisteredPoStProof
impl Send for RegisteredPoStProof
impl Sync for RegisteredPoStProof
impl Unpin for RegisteredPoStProof
impl UnwindSafe for RegisteredPoStProof
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,