Enum AppHostIntent
pub enum AppHostIntent {
MoveDeviceDisplay {
request: DeviceDisplayMove,
reply: Weak<RefCell<DeviceDisplayMoveReply>>,
},
ShowWorkspaceActivity {
resource_id: String,
version_id: Option<[u8; 16]>,
entry: Option<HistoryEntry>,
},
OpenSearch(SearchRequest),
OpenDocument {
path: PathBuf,
capability: DocumentOpenCapability,
token: u64,
reply: Weak<RefCell<DocumentOpenReply>>,
},
AllowHostShell {
reply: Weak<RefCell<HostShellAllow>>,
},
}Expand description
A typed, device-local request from app content to shell chrome. Keeping this on the common app contract lets both in-process tiles and future IPC adapters use one destination without an app reaching into compositor state or pretending a status toast completed the navigation.
Variants§
MoveDeviceDisplay
ShowWorkspaceActivity
Fields
entry: Option<HistoryEntry>A factual app-native event that may not yet be part of the shell’s CRDT record index. This makes the handoff exact instead of opening an empty resource lens while the durable indexes converge.
OpenSearch(SearchRequest)
Open the platform search scoped to this app (or one part of it), with the query already typed. The shell focuses the source tab first.
OpenDocument
A Files-selected local document. The shell validates and admits it only after the originating tile has released its record loan.
AllowHostShell
Terminal asks for the device’s own shell, which the person has not allowed on this device yet. The shell raises its permission prompt and records the answer where the shell runtime reads it.
Fields
reply: Weak<RefCell<HostShellAllow>>Trait Implementations§
§impl Clone for AppHostIntent
impl Clone for AppHostIntent
§fn clone(&self) -> AppHostIntent
fn clone(&self) -> AppHostIntent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for AppHostIntent
impl Debug for AppHostIntent
§impl PartialEq for AppHostIntent
impl PartialEq for AppHostIntent
Auto Trait Implementations§
impl Freeze for AppHostIntent
impl !RefUnwindSafe for AppHostIntent
impl !Send for AppHostIntent
impl !Sync for AppHostIntent
impl Unpin for AppHostIntent
impl UnsafeUnpin for AppHostIntent
impl !UnwindSafe for AppHostIntent
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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