#[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§
source§impl PamConv
impl PamConv
sourcepub fn send(
&self,
style: PamMessageStyle,
msg: &str,
) -> PamResult<Option<String>>
pub fn send( &self, style: PamMessageStyle, msg: &str, ) -> PamResult<Option<String>>
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§
Auto Trait Implementations§
impl Freeze for PamConv
impl RefUnwindSafe for PamConv
impl !Send for PamConv
impl !Sync for PamConv
impl Unpin for PamConv
impl UnwindSafe for PamConv
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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