Skip to content

ref: make EvidenceCreationCb satisfy trait FnOnce - #44

Merged
thomas-fossati merged 1 commit into
veraison:mainfrom
MonakaResearch:main
Aug 13, 2026
Merged

thomas-fossati merged 1 commit into
veraison:mainfrom
MonakaResearch:main

Conversation

@shefali-kamal

Copy link
Copy Markdown

function type fn() is too limiting for capturing variables in closures. This capability is required with rust-regl where an attester must be called to generate evidence.
Use trait FnOnce to define evidence callback functions.

@shefali-kamal
shefali-kamal requested review from THS-on and removed request for THS-on August 11, 2026 15:26
@shefali-kamal

Copy link
Copy Markdown
Author

Hi @thomas-fossati please review this PR.

@thomas-fossati

Copy link
Copy Markdown
Contributor

Fixes #42

@thomas-fossati thomas-fossati left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (with minor rustdoc suggestion inline), thanks!

Comment thread src/lib.rs
function type fn() is too limiting for capturing variables in closures.
This capability is required with rust-regl where an attester must be
called to generate evidence.
Use trait FnOnce to define evidence callback functions.

Signed-off-by: Atul Kumar <Atul.Kumar@fujitsu.com>
@thomas-fossati
thomas-fossati merged commit 7ffe37e into veraison:main Aug 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants