pub struct HandoffServer { /* private fields */ }Expand description
A running loopback server that hands the held credential to the desktop
app exactly once, keyed by a single-use nonce. The deep-link URL carries
only Self::handoff_url (host/port + nonce) — never the secret — so
nothing sensitive lands in ps, shell history, or URL logs.
Implementations§
Source§impl HandoffServer
impl HandoffServer
Sourcepub fn handoff_url(&self) -> String
pub fn handoff_url(&self) -> String
The loopback URL the desktop app fetches the credential from. Carries the nonce (a throwaway lookup key), never the secret.
Sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
The bound loopback address.
Sourcepub fn is_consumed(&self) -> bool
pub fn is_consumed(&self) -> bool
Whether the credential has been fetched (the handoff completed).
Auto Trait Implementations§
impl !RefUnwindSafe for HandoffServer
impl !UnwindSafe for HandoffServer
impl Forget for HandoffServer
impl Freeze for HandoffServerwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<OneTimeSecret> is !null: Freeze,
PhantomData<ArcInner<OneTimeSecret>>: Freeze,
*const ArcInner<Inner<()>> is !null: Freeze,
PhantomData<ArcInner<Inner<()>>>: Freeze,
*const Header is !null: Freeze,
PhantomData<()>: Freeze,
impl Move for HandoffServer
impl Send for HandoffServer
impl Sync for HandoffServer
impl Unpin for HandoffServer
impl UnsafeUnpin for HandoffServerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<OneTimeSecret> is !null: UnsafeUnpin,
PhantomData<ArcInner<OneTimeSecret>>: UnsafeUnpin,
*const ArcInner<Inner<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<()>>>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<()>: UnsafeUnpin,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request