pub struct App { /* private fields */ }Implementations§
Source§impl App
impl App
pub fn new(config: Config) -> Result<Self>
Sourcepub fn with_password(config: Config, password: String) -> Result<Self>
pub fn with_password(config: Config, password: String) -> Result<Self>
Create the app with a password-protected secrets vault. Kept for backward compatibility but the TUI now relies on the gateway for vault operations. The password is stored as a deferred vault password to forward after connecting.
Sourcepub fn new_locked(config: Config) -> Result<Self>
pub fn new_locked(config: Config) -> Result<Self>
Create the app with the local vault in a locked state.
Sourcepub fn set_deferred_vault_password(&mut self, password: String)
pub fn set_deferred_vault_password(&mut self, password: String)
Set a vault password to be sent to the gateway after connecting. Used when –password is passed on the command line.
pub async fn run(&mut self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for App
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl Unpin for App
impl !UnwindSafe for App
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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