pub struct PermissionMenuCoordinator { /* private fields */ }Expand description
PU-B.3: cross-cutting auto-open state shared by the mode (which sets it) and the install-time auto-open tick callback (which reads it). Registered as a service so both reach the same instance.
menu_opengates the tick callback: it opens the next request only when no menu is showing (thelsp.rs::open_next_queued_show_message_requestprecedent). The mode’son_activatesets it true and its guardDrop(on dismiss / resolve) sets it false, so the queue advances on close.deferredholds ids the userEsc-deferred; the tick callback skips them so a deferral is not immediately re-opened (the inline block + the explicit:ai-permissionstill surface them).
Implementations§
Trait Implementations§
Source§impl Default for PermissionMenuCoordinator
impl Default for PermissionMenuCoordinator
Source§fn default() -> PermissionMenuCoordinator
fn default() -> PermissionMenuCoordinator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PermissionMenuCoordinator
impl RefUnwindSafe for PermissionMenuCoordinator
impl Send for PermissionMenuCoordinator
impl Sync for PermissionMenuCoordinator
impl Unpin for PermissionMenuCoordinator
impl UnsafeUnpin for PermissionMenuCoordinator
impl UnwindSafe for PermissionMenuCoordinator
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.