pub struct SudoPasswordResolver { /* private fields */ }Expand description
Resolves sudo password prompts without putting secrets on the event bus.
Implementations§
Source§impl SudoPasswordResolver
impl SudoPasswordResolver
pub fn register(&self, id: String) -> Receiver<SudoPasswordResponse>
Sourcepub fn resolve(&self, response: SudoPasswordResponse) -> bool
pub fn resolve(&self, response: SudoPasswordResponse) -> bool
Deliver the user’s response. The password (if any) never goes on the runtime event bus.
Trait Implementations§
Source§impl Clone for SudoPasswordResolver
impl Clone for SudoPasswordResolver
Source§fn clone(&self) -> SudoPasswordResolver
fn clone(&self) -> SudoPasswordResolver
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 moreAuto Trait Implementations§
impl Freeze for SudoPasswordResolver
impl RefUnwindSafe for SudoPasswordResolver
impl Send for SudoPasswordResolver
impl Sync for SudoPasswordResolver
impl Unpin for SudoPasswordResolver
impl UnsafeUnpin for SudoPasswordResolver
impl UnwindSafe for SudoPasswordResolver
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