pub struct Prover { /* private fields */ }Expand description
Farmer wide state for prover
Implementations§
Source§impl Prover
impl Prover
pub fn new(plot_path: &Path) -> Result<Prover>
pub fn get_qualities_for_challenge( &self, challenge: &Bytes32, ) -> Result<Vec<QualityChain>>
pub fn size(&self) -> u8
pub fn plot_id(&self) -> &Bytes32
pub fn get_strength(&self) -> u8
pub fn get_filename(&self) -> String
pub fn get_memo(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prover
impl<'de> Deserialize<'de> for Prover
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Prover
impl RefUnwindSafe for Prover
impl Send for Prover
impl Sync for Prover
impl Unpin for Prover
impl UnsafeUnpin for Prover
impl UnwindSafe for Prover
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more