pub struct TakeoverUiSession { /* private fields */ }Expand description
The private upstream credential behind one AFUI delivery.
AFUI owns the window, public Link page, attention policy, and registered session. This lease only keeps the separately hosted takeover panel alive while that delivery exists. Its short idle timeout is crash cleanup, not a user-visible UI expiry.
Implementations§
Source§impl TakeoverUiSession
impl TakeoverUiSession
Sourcepub async fn exchange(takeover_url_secret: &str) -> Result<Self, Error>
pub async fn exchange(takeover_url_secret: &str) -> Result<Self, Error>
Exchange an already-minted panel handoff for a process-bound UI lease.
The existing handoff authorizes only this exchange; callers do not need the host’s long-lived API bearer merely to put a URL they already hold into AFUI’s delivery lifecycle.
Sourcepub fn takeover_url_secret(&self) -> &str
pub fn takeover_url_secret(&self) -> &str
The upstream URL AFUI keeps private behind its own delivery.
Sourcepub async fn keep_alive(&self) -> Result<(), Error>
pub async fn keep_alive(&self) -> Result<(), Error>
Renew until this future is cancelled or the host can no longer do so.
Auto Trait Implementations§
impl !RefUnwindSafe for TakeoverUiSession
impl !UnwindSafe for TakeoverUiSession
impl Freeze for TakeoverUiSession
impl Send for TakeoverUiSession
impl Sync for TakeoverUiSession
impl Unpin for TakeoverUiSession
impl UnsafeUnpin for TakeoverUiSession
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