pub struct SetupWizard { /* private fields */ }Expand description
The setup wizard state machine
Implementations§
Source§impl SetupWizard
impl SetupWizard
Sourcepub fn new(paths: EnvelopePaths) -> Self
pub fn new(paths: EnvelopePaths) -> Self
Create a new setup wizard
Sourcepub fn needs_setup(&self, settings: &Settings) -> bool
pub fn needs_setup(&self, settings: &Settings) -> bool
Check if setup is needed (first run)
Sourcepub fn run(
&self,
storage: &Storage,
settings: &mut Settings,
) -> EnvelopeResult<SetupResult>
pub fn run( &self, storage: &Storage, settings: &mut Settings, ) -> EnvelopeResult<SetupResult>
Run the interactive setup wizard
Sourcepub fn run_minimal(
&self,
_storage: &Storage,
settings: &mut Settings,
) -> EnvelopeResult<SetupResult>
pub fn run_minimal( &self, _storage: &Storage, settings: &mut Settings, ) -> EnvelopeResult<SetupResult>
Run a minimal CLI setup (non-interactive)
Auto Trait Implementations§
impl Freeze for SetupWizard
impl RefUnwindSafe for SetupWizard
impl Send for SetupWizard
impl Sync for SetupWizard
impl Unpin for SetupWizard
impl UnsafeUnpin for SetupWizard
impl UnwindSafe for SetupWizard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more