MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / preserve_or_create_credentials

Function preserve_or_create_credentials

packages/server/src/service.rs:62–69  ·  view source on GitHub ↗
(options: &mut ServiceOptions)

Source from the content-addressed store, hash-verified

60}
61
62fn preserve_or_create_credentials(options: &mut ServiceOptions) {
63 let existing_credentials = installed_credentials().unwrap_or(None);
64 apply_credentials(
65 options,
66 existing_credentials.as_ref(),
67 CredentialPolicy::Preserve,
68 );
69}
70
71fn reset_credentials(options: &mut ServiceOptions) {
72 apply_credentials(options, None, CredentialPolicy::Reset);

Callers 3

enableFunction · 0.85
restartFunction · 0.85
pairFunction · 0.85

Calls 2

installed_credentialsFunction · 0.85
apply_credentialsFunction · 0.85

Tested by

no test coverage detected