[−][src]Enum greetd_ipc::Response
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
The request was successful.
The request failed. See the type and/or description for more information about this failure.
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: AuthMessageType
auth_message: String
Trait Implementations
impl Debug for Response
[src]
impl<'de> Deserialize<'de> for Response
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Response
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl SyncCodec for Response
[src]
fn read_from<T: Read>(stream: &mut T) -> Result<Self, Error>
[src]
fn write_to<T: Write>(&self, stream: &mut T) -> Result<(), Error>
[src]
impl TokioCodec for Response
[src]
fn read_from<'life0, 'async_trait, T: AsyncReadExt + Unpin + Send>(
stream: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
stream: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn write_to<'life0, 'life1, 'async_trait, T: AsyncWriteExt + Unpin + Send>(
&'life0 self,
stream: &'life1 mut T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
stream: &'life1 mut T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,