-
Notifications
You must be signed in to change notification settings - Fork 12
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
refactor(tauri): new tunnel state api #1967
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pronebird
reviewed
Jan 22, 2025
doums
force-pushed
the
pierre/tunnel_state
branch
3 times, most recently
from
January 22, 2025 22:48
88f4a3e
to
a8eb198
Compare
doums
force-pushed
the
pierre/tunnel_state
branch
from
January 22, 2025 23:35
be9ee77
to
38a0985
Compare
rokas-ambrazevicius
approved these changes
Jan 24, 2025
pronebird
reviewed
Jan 28, 2025
pronebird
reviewed
Jan 28, 2025
add watch tunnel state routine
rust some refactoring
cleanup no longer existing api types mapping
doums
force-pushed
the
pierre/tunnel_state
branch
from
January 29, 2025 14:54
2ae3413
to
64bebc0
Compare
refactor and cleanup errors
doums
force-pushed
the
pierre/tunnel_state
branch
from
January 29, 2025 18:16
c595b1b
to
a8fba08
Compare
doums
commented
Jan 29, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
in short switch to the new tunnel state API
This introduces two new global statuses (user facing and relayed right into the UI):
Offline
(aka "no host internet connection")Error
for tunnel state errorApp is subscribing to
rpc ListenToEvents
and manages live tunnel state updates and mixnet events.App queries the initial tunnel state from
rpc GetTunnelState
.Any error sent from tunnel state, so
Error(reason)
will take precedence over any other errors in the UI.NOTE this is a first iteration, the new tunnel state allow for new possible actions which are not part of this PR
This change is