Struct pam_kanidm::items::PamConv

source ·
#[repr(C)]
pub struct PamConv { /* private fields */ }
Expand description

PamConv acts as a channel for communicating with user.

Communication is mediated by the pam client (the application that invoked pam). Messages sent will be relayed to the user by the client, and response will be relayed back.

Implementations§

Sends a message to the pam client.

This will typically result in the user seeing a message or a prompt. There are several message styles available:

  • PAM_PROMPT_ECHO_OFF
  • PAM_PROMPT_ECHO_ON
  • PAM_ERROR_MSG
  • PAM_TEXT_INFO
  • PAM_RADIO_TYPE
  • PAM_BINARY_PROMPT

Note that the user experience will depend on how the client implements these message styles - and not all applications implement all message styles.

Trait Implementations§

Maps a Rust type to a pam constant. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more