pub struct LoginManager {
state: LoginState,
current_input: Vec<u8>,
setup_password: Vec<u8>,
saved_password_hash: [u8; 32],
error_ticks_end: usize,
error_msg: &'static str,
pub needs_redraw: bool,
}Fields§
§state: LoginState§current_input: Vec<u8>§setup_password: Vec<u8>§saved_password_hash: [u8; 32]§error_ticks_end: usize§error_msg: &'static str§needs_redraw: boolImplementations§
Source§impl LoginManager
impl LoginManager
pub fn new() -> Self
Sourcefn check_saved_password(&mut self)
fn check_saved_password(&mut self)
SylFS から password.cfg を読み込んで保存されているパスワード情報があるか確認
pub fn is_unlocked(&self) -> bool
Sourcepub fn handle_key_input(&mut self, c: char)
pub fn handle_key_input(&mut self, c: char)
キーボード入力イベントの処理
Sourcefn process_completed_input(&mut self)
fn process_completed_input(&mut self)
入力完了(Enter押下時)の処理
fn trigger_error(&mut self, msg: &'static str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoginManager
impl RefUnwindSafe for LoginManager
impl Send for LoginManager
impl Sync for LoginManager
impl Unpin for LoginManager
impl UnsafeUnpin for LoginManager
impl UnwindSafe for LoginManager
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