pub struct Conversation {}
Expand description
Null implementation of ConversationHandler
When a PAM module asks for any user interaction an error is returned. Error and info messages are ignored.
This handler may be used for testing and for environments where no user interaction is possible, no credentials can be stored beforehand and failing is the only answer if some PAM module needs input.
Implementations§
Source§impl Conversation
impl Conversation
Trait Implementations§
Source§impl Clone for Conversation
impl Clone for Conversation
Source§fn clone(&self) -> Conversation
fn clone(&self) -> Conversation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ConversationHandler for Conversation
impl ConversationHandler for Conversation
Source§fn prompt_echo_on(&mut self, _msg: &CStr) -> Result<CString, ErrorCode>
fn prompt_echo_on(&mut self, _msg: &CStr) -> Result<CString, ErrorCode>
Obtains a string whilst echoing text (e.g. username) Read more
Source§fn prompt_echo_off(&mut self, _msg: &CStr) -> Result<CString, ErrorCode>
fn prompt_echo_off(&mut self, _msg: &CStr) -> Result<CString, ErrorCode>
Obtains a string without echoing any text (e.g. password) Read more
Source§impl Debug for Conversation
impl Debug for Conversation
Auto Trait Implementations§
impl Freeze for Conversation
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnwindSafe for Conversation
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