pub struct AskpassHelper { /* private fields */ }Expand description
Spawns program per call with a single prompt argument and reads
the username or password from stdout.
program is the raw command string, split on whitespace the same
way upstream’s subprocess.ExecCommand shells expand it: the
first token is the executable and subsequent tokens are passed as
additional args before the prompt.
Implementations§
Trait Implementations§
Source§impl Clone for AskpassHelper
impl Clone for AskpassHelper
Source§fn clone(&self) -> AskpassHelper
fn clone(&self) -> AskpassHelper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AskpassHelper
impl Debug for AskpassHelper
Source§impl Helper for AskpassHelper
impl Helper for AskpassHelper
Source§fn approve(
&self,
_query: &Query,
_creds: &Credentials,
) -> Result<(), HelperError>
fn approve( &self, _query: &Query, _creds: &Credentials, ) -> Result<(), HelperError>
Askpass has no persistence, so approve is a no-op.
Source§fn reject(
&self,
_query: &Query,
_creds: &Credentials,
) -> Result<(), HelperError>
fn reject( &self, _query: &Query, _creds: &Credentials, ) -> Result<(), HelperError>
Askpass has no persistence, so reject is a no-op.
Source§fn fill(&self, query: &Query) -> Result<Option<Credentials>, HelperError>
fn fill(&self, query: &Query) -> Result<Option<Credentials>, HelperError>
Try to fetch credentials for
query. Read moreAuto Trait Implementations§
impl Freeze for AskpassHelper
impl RefUnwindSafe for AskpassHelper
impl Send for AskpassHelper
impl Sync for AskpassHelper
impl Unpin for AskpassHelper
impl UnsafeUnpin for AskpassHelper
impl UnwindSafe for AskpassHelper
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