pub struct Helper { /* private fields */ }Expand description
A running helper with an authenticated connection.
Implementations§
Source§impl Helper
impl Helper
Sourcepub fn start(app: &Path, socket_dir: &Path) -> Result<Helper, ConsentError>
pub fn start(app: &Path, socket_dir: &Path) -> Result<Helper, ConsentError>
Verify, start and connect; socket_dir is <data>/cloud/consent/helper.
Sourcepub fn presence(&mut self, record: &Record) -> Result<Approval, ConsentError>
pub fn presence(&mut self, record: &Record) -> Result<Approval, ConsentError>
The OS dialog for record; the proof the broker stores.
Sourcepub fn bind_key(&mut self, instance_id: &str) -> Result<Value, ConsentError>
pub fn bind_key(&mut self, instance_id: &str) -> Result<Value, ConsentError>
{alg, public_key, key_id, hardware, card_bind_signature} for the
device-flow finish (§3.8.4 binding).
pub fn public_key(&mut self) -> Result<Value, ConsentError>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Helper
impl Freeze for Helperwhere
I32NotAllOnes: Freeze,
*const [MaybeUninit<u8>] is !null: Freeze,
PhantomData<[MaybeUninit<u8>]>: Freeze,
impl Move for Helper
impl RefUnwindSafe for Helperwhere
I32NotAllOnes: RefUnwindSafe,
impl Send for Helper
impl Sync for Helper
impl Unpin for Helper
impl UnsafeUnpin for Helperwhere
I32NotAllOnes: UnsafeUnpin,
*const [MaybeUninit<u8>] is !null: UnsafeUnpin,
PhantomData<[MaybeUninit<u8>]>: UnsafeUnpin,
impl UnwindSafe for Helper
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more