pub struct ResourceProver { /* private fields */ }Expand description
Object used to compute a result
Implementations§
Source§impl ResourceProver
impl ResourceProver
Sourcepub fn expected_steps(&self) -> u64
pub fn expected_steps(&self) -> u64
The expected number of steps is pow(2, difficulty).
The process is probabilistic, so the actual number of steps required may be more or less.
The length of each step depends on data size. Total expected time is proportional to
length * pow(2, difficulty).
Auto Trait Implementations§
impl Freeze for ResourceProver
impl RefUnwindSafe for ResourceProver
impl Send for ResourceProver
impl Sync for ResourceProver
impl Unpin for ResourceProver
impl UnwindSafe for ResourceProver
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