pub enum GreetState {
Idle,
Busy,
Asking {
message: String,
visible: bool,
},
Authenticated,
Started,
Failed {
message: String,
auth: bool,
},
}Expand description
Where a session being made stands.
Variants§
Idle
No session is being made.
Busy
A request is on its way to greetd.
Asking
greetd asks a question, such as for the password; visible is
false for a secret.
Fields
Authenticated
The user is authenticated, and the session can be started.
Started
The session will start once the greeter exits.
Failed
A request failed. auth says it was the credentials, which the
user can try again.
Trait Implementations§
Source§impl Clone for GreetState
impl Clone for GreetState
Source§impl Debug for GreetState
impl Debug for GreetState
Source§impl Default for GreetState
impl Default for GreetState
Source§impl PartialEq for GreetState
impl PartialEq for GreetState
impl StructuralPartialEq for GreetState
Auto Trait Implementations§
impl Forget for GreetState
impl Freeze for GreetState
impl Move for GreetState
impl RefUnwindSafe for GreetState
impl Send for GreetState
impl Sync for GreetState
impl Unpin for GreetState
impl UnsafeUnpin for GreetState
impl UnwindSafe for GreetState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.