[][src]Enum greetd_ipc::Response

pub enum Response {
    Success,
    Error {
        error_type: ErrorType,
        description: String,
    },
    AuthMessage {
        auth_message_type: AuthMessageType,
        auth_message: String,
    },
}

A response from greetd to a greeter. The request type is internally tagged with the"type" field, with the type written in snake_case.

Example serialization:

{
   "type": "auth_message",
   "message": "Password:",
   "message_type": "secret"
}

Variants

Success

The request was successful.

Error

The request failed. See the type and/or description for more information about this failure.

Fields of Error

error_type: ErrorTypedescription: String
AuthMessage

An authentication message needs to be answered to continue through the authentication flow.

An authentication message can consist of anything. While it will commonly just be a request for the users' password, it could also ask for TOTP codes, or whether or not you felt sad when Littlefoot's mother died in the original "Land Before Time". It is therefore important that no assumptions are made about the questions that will be asked, and attempts to automatically answer these questions should not be made.

Fields of AuthMessage

auth_message_type: AuthMessageTypeauth_message: String

Trait Implementations

impl Debug for Response[src]

impl<'de> Deserialize<'de> for Response[src]

impl Serialize for Response[src]

impl SyncCodec for Response[src]

impl TokioCodec for Response[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.