Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OptionalBackend wrapper #158

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

robin-nitrokey
Copy link
Member

Backends can be activated at runtime depending on the configuration or execution environment. This patch adds an OptionalBackend wrapper that implements Backend and ExtensionImpl but returns a RequestNotAvailable error if the inner backend is not set.

src/backend.rs Outdated Show resolved Hide resolved
Backends can be activated at runtime depending on the configuration or
execution environment.  This patch adds an OptionalBackend wrapper that
implements Backend and ExtensionImpl but returns a RequestNotAvailable
error if the inner backend is not set.
@robin-nitrokey robin-nitrokey merged commit 667d60c into trussed-dev:main Apr 2, 2024
2 checks passed
@robin-nitrokey robin-nitrokey deleted the optional-backend branch April 2, 2024 14:21
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.

2 participants