Struct pam_client::conv_null::Conversation
source · [−]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
sourceimpl Conversation
impl Conversation
Trait Implementations
sourceimpl Clone for Conversation
impl Clone for Conversation
sourcefn clone(&self) -> Conversation
fn clone(&self) -> Conversation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConversationHandler for Conversation
impl ConversationHandler for Conversation
sourcefn 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
sourcefn 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
sourceimpl Debug for Conversation
impl Debug for Conversation
Auto Trait Implementations
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnwindSafe for Conversation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more