pub(crate) trait MockableRendRequest {
// Required method
fn proof_of_work(&self) -> Result<Option<&ProofOfWork>, IntroRequestError>;
}
Expand description
Trait to allow mocking RendRequest in tests.
Required Methods§
Sourcefn proof_of_work(&self) -> Result<Option<&ProofOfWork>, IntroRequestError>
fn proof_of_work(&self) -> Result<Option<&ProofOfWork>, IntroRequestError>
Get the proof-of-work extension associated with this request.