Struct NativeProcessHost
pub struct NativeProcessHost { /* private fields */ }Expand description
The host inputs a normal application process receives from the trusted launcher. Storage and presentation identity are resolved once, before an application factory is allowed to open a record.
Implementations§
§impl NativeProcessHost
impl NativeProcessHost
pub fn open(
definition: &ApplicationDefinition,
) -> Result<NativeProcessHost, LaunchError>
pub fn open( definition: &ApplicationDefinition, ) -> Result<NativeProcessHost, LaunchError>
Resolve the current process’s launcher-owned namespace and authority.
A workspace launch fails closed to viewer authority when the launcher does not explicitly mark it as an author. A standalone launch receives owner authority over its own app data, without gaining filesystem or network capabilities outside the process sandbox.
§Errors
Refuses mismatched package identity, malformed launcher values, relative or unavailable persistent storage, and corrupt device state.
pub fn host_mut(&mut self) -> &mut ApplicationHost
pub fn instance_id(&self) -> u64
pub fn prepare_launch(
&mut self,
definition: &ApplicationDefinition,
named: Option<RecordId>,
inputs: ComponentRunnerInputs,
) -> Result<PreparedComponentInputs, LaunchError>
pub fn prepare_launch( &mut self, definition: &ApplicationDefinition, named: Option<RecordId>, inputs: ComponentRunnerInputs, ) -> Result<PreparedComponentInputs, LaunchError>
Prepare this native window’s named record or saved continuation. A launcher-issued fresh instance has its own durable fallback record; standalone profiles retain the room default. Room-record applications still use their package primary through the normal host policy.
§Errors
Refuses contested writers, invalid saved views and denied authority.
pub fn workspace_scoped(&self) -> bool
Auto Trait Implementations§
impl Freeze for NativeProcessHost
impl !RefUnwindSafe for NativeProcessHost
impl !Send for NativeProcessHost
impl !Sync for NativeProcessHost
impl Unpin for NativeProcessHost
impl UnsafeUnpin for NativeProcessHost
impl !UnwindSafe for NativeProcessHost
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
§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