Skip to main content

LocalEngine

Struct LocalEngine 

Source
pub struct LocalEngine<M: TextEngine + 'static> { /* private fields */ }
Expand description

An engine driven by its host’s event loop instead of a thread of its own: the browser’s main thread in WebAssembly, where there are no threads to block. Input sent through its EngineControl is handled at the next LocalEngine::pump.

Implementations§

Source§

impl<M: TextEngine + 'static> LocalEngine<M>

Source

pub fn start<S: MountSink>( config: EngineConfig, text_engine: M, sink: S, ) -> Option<Self>

Starts the app (its first frame goes to sink before this returns); None if it could not start (reported to sink).

Source

pub fn start_with<S: MountSink>( config: EngineConfig, text_engine: M, sink: S, setup: impl FnOnce(&EngineControl), ) -> Option<Self>

LocalEngine::start, with setup sending input before the engine starts, as Engine::start_with’s does: the link that launched the app is there before its code runs.

Source

pub fn control(&self) -> EngineControl

A handle for sending input.

Source

pub fn set_wake(&mut self, wake: Arc<dyn Fn() + Send + Sync>)

Calls wake when there is work outside a pump: a component task is woken or Rust posts a JS call while no pump runs (a callback of the host’s completing what a task waits for, such as a WebSocket message through wasm-bindgen), once per wake-up, or a pump ends with work its bound left. The host then calls pump soon, instead of only at the deadline it returned or at the next input. What a pump wakes itself (a task waking another, a reply it hands over) it runs without calling wake.

Source

pub fn extend_ui_sets(&mut self, ui_sets: &[Registry])

Serves ui_sets (a superset of the config’s, after a UI set or part was registered while the app runs: the web runtime’s late gates) to what is mounted from now on.

Source

pub fn pump(&mut self) -> Option<Instant>

Handles the input sent since the last call, runs what is due (timers, tasks) and commits. Returns when to call again at the latest (sooner if input arrives); None: only for input.

Trait Implementations§

Source§

impl<M: TextEngine + 'static> Drop for LocalEngine<M>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

§

impl<M> !Freeze for LocalEngine<M>

§

impl<M> !RefUnwindSafe for LocalEngine<M>

§

impl<M> !Send for LocalEngine<M>

§

impl<M> !Sync for LocalEngine<M>

§

impl<M> !UnwindSafe for LocalEngine<M>

§

impl<M> Forget for LocalEngine<M>

§

impl<M> Move for LocalEngine<M>

§

impl<M> Unpin for LocalEngine<M>
where *const u8 is !null: Unpin, Box<Style>: Unpin, Rc<ViewStyle>: Unpin, Rc<TextStyle>: Unpin, Rc<PaintStyle>: Unpin, Arc<Drawing>: Unpin, Box<ShaderNode>: Unpin, *const (): Unpin, Box<str>: Unpin, Box<PropertyValue>: Unpin, Box<[(TransformKind, f32, Option<u32>)]>: Unpin, Rc<[(BoxShadow, bool)]>: Unpin, Rc<[Gradient]>: Unpin, Rc<[(Filter, bool)]>: Unpin, Arc<[Points]>: Unpin, Rc<(Vec<GridTemplateComponent<String>>, Vec<Vec<String>>)>: Unpin, Rc<[MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>]>: Unpin, Box<ClassNames>: Unpin, Rc<ClassList>: Unpin, Rc<ClassProps>: Unpin, Box<[&'static str]>: Unpin, Box<NodeParts>: Unpin, Box<Rect<LengthPercentageAuto>>: Unpin, Box<Following>: Unpin, Box<[Edges<Points>; 2]>: Unpin, Box<(EnvEdges, [Edges<Points>; 2])>: Unpin, Arc<str>: Unpin, Box<ViewProps>: Unpin, Box<ImageState>: Unpin, Box<ScrollState>: Unpin, Box<ListState>: Unpin, Box<InputState>: Unpin, Box<RootState>: Unpin, Box<NativeProps>: Unpin, Box<ComponentState>: Unpin, Box<[Option<u32>]>: Unpin, Rc<Style>: Unpin, Box<Vec<OofCandidate>>: Unpin, Align2<u16>: Unpin, Box<DetailedGridInfo>: Unpin, Box<LeafContext<<M as TextEngine>::Prepared>>: Unpin, Rc<Rc<M>>: Unpin, Rc<dyn GeometryEngine>: Unpin, Arc<dyn Any + Sync + Send>: Unpin, Arc<AttributedText>: Unpin, Arc<[u32]>: Unpin, Box<[f32]>: Unpin, Rc<dyn Any>: Unpin, Rc<Target>: Unpin, Arc<Program>: Unpin, Box<ViewStyle>: Unpin, Arc<dyn AsRef<[u8]> + Sync + Send>: Unpin, Arc<Rgba>: Unpin, Arc<Keymap>: Unpin, Box<ScrollBehavior>: Unpin, Arc<ShaderLayer>: Unpin, Box<Composite>: Unpin, Box<InputConfig>: Unpin, Box<ScreenConfig>: Unpin, Box<WebProps>: Unpin, Box<VideoProps>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, Arc<Tokens>: Unpin, Box<AlertDialogRequest>: Unpin, Box<FileRequest>: Unpin, Box<DesktopCommand>: Unpin, &'static str: Unpin, Box<TouchEvent>: Unpin, Box<FileContents>: Unpin, Box<PasteEvent>: Unpin, Box<TextDrop>: Unpin, Box<WindowEvent>: Unpin, Rc<dyn Fn(&EventPayload)>: Unpin, Box<dyn EventToJs>: Unpin, Rc<dyn RenderValue>: Unpin, Rc<dyn CallbackHandle>: Unpin, Box<dyn ToJs>: Unpin, Box<ErrorFields>: Unpin, Box<Retags>: Unpin, Arc<ClassTokens>: Unpin, Rc<[Decl]>: Unpin, Box<Rule>: Unpin, Rc<ResolvedClassStyle>: Unpin, Arc<Access>: Unpin, Arc<MediaFiles>: Unpin, Arc<dyn ClipboardBackend>: Unpin, Arc<dyn PickerBackend>: Unpin, Arc<dyn WindowBackend>: Unpin, Arc<dyn AudioBackend>: Unpin, Arc<dyn LoginItemBackend>: Unpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Unpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Unpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: Unpin, Rc<RefCell<Output<Result<Evaluation, JsError>>>>: Unpin, *const RcInner<Executor> is !null: Unpin, Rc<RefCell<Output<()>>>: Unpin, Rc<RefCell<Output<Result<Vec<u8>, JsError>>>>: Unpin, Arc<HashMap<&'static str, ComponentType, FxBuildHasher>>: Unpin, Arc<HashMap<&'static str, ModuleType, FxBuildHasher>>: Unpin, Arc<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>>: Unpin, Arc<(Vec<&'static str>, Vec<&'static str>)>: Unpin, Arc<Vec<&'static str>>: Unpin, Arc<Vec<(&'static [Os], &'static [AssetFile])>>: Unpin, Arc<Vec<Registry>>: Unpin, Arc<Vec<Arc<dyn Fn() + Sync + Send>>>: Unpin, Arc<Vec<(&'static str, Arc<dyn Fake>)>>: Unpin, Arc<Vec<(&'static str, GpuSource)>>: Unpin, Arc<ComponentSpec>: Unpin, Box<Instance>: Unpin, Box<dyn AnyProps>: Unpin, Rc<StylePatch>: Unpin, Arc<Value>: Unpin, Rc<ListDiff>: Unpin, Arc<[Keystroke]>: Unpin, Arc<dyn Fn(WebResourceRequest) + Sync + Send>: Unpin, Box<RareAttrs>: Unpin, Rc<Vec<(Variant, Declaration)>>: Unpin, Rc<dyn Fn(&mut StyleRefinement)>: Unpin, Rc<dyn Fn(Child, Position) -> AnyElement>: Unpin, Rc<Executor>: Unpin, Rc<str>: Unpin, Rc<dyn Fn(WindowCloseCause)>: Unpin, Rc<RefCell<Output<DialogReply>>>: Unpin, Rc<RefCell<Output<Result<ImageSize, String>>>>: Unpin, Rc<RefCell<Output<String>>>: Unpin, Rc<RefCell<Output<Option<String>>>>: Unpin, Rc<RefCell<Output<bool>>>: Unpin, Rc<RefCell<Output<Option<ClipboardImage>>>>: Unpin, Rc<RefCell<Output<Result<Option<ClipboardImage>, usize>>>>: Unpin, Rc<RefCell<Output<Vec<String>>>>: Unpin, Rc<RefCell<Output<Vec<PickedFile>>>>: Unpin, Arc<Mutex<Channel>>: Unpin, Rc<RefCell<Output<NotificationPermission>>>: Unpin, Rc<RefCell<Output<AppUrlChange>>>: Unpin, Rc<RefCell<AppUrlState>>: Unpin, Rc<RefCell<Output<SecondInstance>>>: Unpin, Rc<RefCell<Output<Vec<PathBuf>>>>: Unpin, Rc<RefCell<Output<Result<Value, HostError>>>>: Unpin, Rc<RefCell<Output<ClipboardWrite>>>: Unpin, Box<dyn FnOnce() + Send>: Unpin, Rc<RefCell<Output<Result<bool, AppSettingsError>>>>: Unpin, Rc<RefCell<Output<Option<Hsla>>>>: Unpin, Rc<RefCell<Output<Result<Option<Vec<PathBuf>>, String>>>>: Unpin, Rc<RefCell<Output<Result<Option<PathBuf>, String>>>>: Unpin, Rc<RefCell<Output<Result<(), String>>>>: Unpin, Rc<RefCell<Output<Result<HttpResponse, FetchFailure>>>>: Unpin, Rc<RefCell<Output<f32>>>: Unpin, Rc<RefCell<Output<Option<Measurement>>>>: Unpin, Rc<RefCell<Output<Option<ListScrollPosition>>>>: Unpin, Rc<RefCell<Output<Duration>>>: Unpin, Arc<Mutex<VecDeque<Signal>>>: Unpin, Arc<Mutex<Option<Arc<dyn Fn() + Sync + Send>>>>: Unpin, Arc<Atomic<bool>>: Unpin, *mut Counter<Channel<Job>>: Unpin, *mut Counter<Channel<Job>>: Unpin, *mut Counter<Channel<Job>>: Unpin, Arc<Mutex<CleanupState>>: Unpin, Rc<Cell<Option<Owner>>>: Unpin, Rc<dyn Fn(Position) -> AnyElement>: Unpin, Rc<[u64]>: Unpin, Rc<dyn Fn() -> AnyElement>: Unpin, Rc<RefCell<HashMap<u32, (Signal<usize>, Owner), FxBuildHasher>>>: Unpin, Box<dyn FnOnce(&(dyn Any + 'static)) -> Option<Result<Box<dyn ToJs>, Thrown>>>: Unpin, Rc<RefCell<Output<Instant>>>: Unpin, Box<UnsafeCell<Graph<Rust>>>: Unpin, Rc<RefCell<Vec<Patch>>>: Unpin, Box<ListConfig>: Unpin, Rc<PostsInner>: Unpin, Rc<RenderPlace>: Unpin, Box<RenderRequest>: Unpin, Box<Drawing>: Unpin, Box<Style>: Unpin, Box<dyn FnOnce(&mut ModuleCx) -> Result<Box<dyn ToJs>, Thrown>>: Unpin, Box<dyn FnOnce() -> Pin<Box<dyn Future<Output = Result<Box<dyn ToJs>, Thrown>>>>>: Unpin, Arc<PerfMonitor>: Unpin, Arc<Mutex<Inner>>: Unpin, Arc<CallCount>: Unpin, Arc<dyn Network>: Unpin, *mut Counter<Channel<Message>>: Unpin, *mut Counter<Channel<Message>>: Unpin, *mut Counter<Channel<Message>>: Unpin, Box<dyn FetchTask>: Unpin, Arc<dyn Assets>: Unpin, Arc<Handle>: Unpin, Arc<Handle>: Unpin, *const JSContext is !null: Unpin, Arc<Mutex<InnerRuntime>>: Unpin, Rc<Scheduler>: Unpin, Rc<Shared>: Unpin, Box<dyn Fn(&JsError)>: Unpin, Rc<Cell<Option<Duration>>>: Unpin, Rc<Cell<Option<Phase>>>: Unpin, Rc<Cell<Phase>>: Unpin, *mut JSRuntime: Unpin, &'static mut &'static fn(&'static ()) -> &'static (): Unpin, *mut c_void: Unpin, Rc<Cell<bool>>: Unpin, Rc<RefCell<Symbolicator>>: Unpin, Arc<PackageInfo>: Unpin, Arc<dyn Trial>: Unpin, Rc<dyn MountSink>: Unpin, Arc<Mutex<Manual>>: Unpin, Arc<HashMap<TypeId, Arc<dyn Any + Sync + Send>, FxBuildHasher>>: Unpin, Arc<Channel>: Unpin, Arc<Channel>: Unpin, Box<Environment>: Unpin, Arc<[Display]>: Unpin, Box<Tokens>: Unpin, Box<dyn FnOnce(bool, Option<Instant>) + Send>: Unpin, Arc<Atomic<u8>>: Unpin, Arc<dyn Fn() + Sync + Send>: Unpin,

§

impl<M> UnsafeUnpin for LocalEngine<M>
where *const u8 is !null: UnsafeUnpin, PhantomData<Entry<Node>>: UnsafeUnpin, PhantomData<Option<Page<u32>>>: UnsafeUnpin, PhantomData<(u32, Run)>: UnsafeUnpin, PhantomData<(u32, u32)>: UnsafeUnpin, PhantomData<Entry<LayoutNode<LeafContext<<M as TextEngine>::Prepared>>>>: UnsafeUnpin, PhantomData<NodeId>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const (): UnsafeUnpin, PhantomData<GridTemplateComponent<String>>: UnsafeUnpin, PhantomData<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>: UnsafeUnpin, PhantomData<GridTemplateArea<String>>: UnsafeUnpin, PhantomData<Vec<String>>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<Rc<Style>>: UnsafeUnpin, *const RcInner<Style> is !null: UnsafeUnpin, PhantomData<RcInner<Style>>: UnsafeUnpin, *const RcInner<Rc<M>> is !null: UnsafeUnpin, PhantomData<RcInner<Rc<M>>>: UnsafeUnpin, *const RcInner<dyn GeometryEngine> is !null: UnsafeUnpin, PhantomData<RcInner<dyn GeometryEngine>>: UnsafeUnpin, PhantomData<(u32, TextGeometry)>: UnsafeUnpin, PhantomData<((u64, u32), Size<Points>)>: UnsafeUnpin, PhantomData<u32>: UnsafeUnpin, PhantomData<(u32, f32, f32, f32, f32)>: UnsafeUnpin, PhantomData<(u32, Def)>: UnsafeUnpin, PhantomData<(u32, Bounds<Points>)>: UnsafeUnpin, PhantomData<(u32, f32)>: UnsafeUnpin, PhantomData<(u32, ())>: UnsafeUnpin, *const RcInner<dyn Any> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Any>>: UnsafeUnpin, PhantomData<Relator>: UnsafeUnpin, PhantomData<(u64, Result<Shader, ShaderError>)>: UnsafeUnpin, PhantomData<((u32, u32), ())>: UnsafeUnpin, PhantomData<MountItem>: UnsafeUnpin, PhantomData<(Box<str>, u32)>: UnsafeUnpin, PhantomData<ListBind>: UnsafeUnpin, PhantomData<JsEvent>: UnsafeUnpin, *const Retags is !null: UnsafeUnpin, PhantomData<Retags>: UnsafeUnpin, PhantomData<(u32, Command)>: UnsafeUnpin, PhantomData<(u32, Option<(u32, u32)>)>: UnsafeUnpin, PhantomData<(u32, LayoutTransition, bool)>: UnsafeUnpin, PhantomData<(u32, u8)>: UnsafeUnpin, *const ArcInner<Keymap> is !null: UnsafeUnpin, PhantomData<ArcInner<Keymap>>: UnsafeUnpin, PhantomData<(u32, u32, Instant)>: UnsafeUnpin, PhantomData<(u32, Vec<u32>)>: UnsafeUnpin, PhantomData<((Option<FontFamily>, u32, u16, bool), f32)>: UnsafeUnpin, PhantomData<(Box<str>, Color)>: UnsafeUnpin, PhantomData<(Box<str>, f32, bool)>: UnsafeUnpin, PhantomData<(Box<str>, f32)>: UnsafeUnpin, PhantomData<(Box<str>, (f32, Option<f32>))>: UnsafeUnpin, PhantomData<(Box<str>, u16)>: UnsafeUnpin, PhantomData<(Box<str>, Option<Box<str>>)>: UnsafeUnpin, PhantomData<(Box<str>, Vec<BoxShadow>)>: UnsafeUnpin, PhantomData<(Box<str>, Vec<TextShadow>)>: UnsafeUnpin, PhantomData<(Box<str>, [f32; 4])>: UnsafeUnpin, *const ArcInner<ClassTokens> is !null: UnsafeUnpin, PhantomData<ArcInner<ClassTokens>>: UnsafeUnpin, PhantomData<(Box<str>, Rc<ClassList>)>: UnsafeUnpin, PhantomData<(Box<str>, Option<Token>)>: UnsafeUnpin, PhantomData<(ResolvedKey, Rc<ResolvedClassStyle>)>: UnsafeUnpin, *const ArcInner<Access> is !null: UnsafeUnpin, PhantomData<ArcInner<Access>>: UnsafeUnpin, *const ArcInner<str> is !null: UnsafeUnpin, PhantomData<ArcInner<str>>: UnsafeUnpin, *const ArcInner<MediaFiles> is !null: UnsafeUnpin, PhantomData<ArcInner<MediaFiles>>: UnsafeUnpin, PhantomData<(Arc<str>, Option<Arc<str>>)>: UnsafeUnpin, PhantomData<(String, ())>: UnsafeUnpin, PhantomData<(u32, WindowRecord)>: UnsafeUnpin, PhantomData<(String, (u32, bool))>: UnsafeUnpin, *const ArcInner<dyn ClipboardBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn ClipboardBackend>>: UnsafeUnpin, *const ArcInner<dyn PickerBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn PickerBackend>>: UnsafeUnpin, *const ArcInner<dyn WindowBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn WindowBackend>>: UnsafeUnpin, *const ArcInner<dyn AudioBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn AudioBackend>>: UnsafeUnpin, *const ArcInner<dyn LoginItemBackend> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn LoginItemBackend>>: UnsafeUnpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: UnsafeUnpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: UnsafeUnpin, *mut Counter<Channel<(Option<bool>, Sender<Result<LoginItemStatus, Error>>)>>: UnsafeUnpin, PhantomData<(u32, Pending)>: UnsafeUnpin, PhantomData<(u32, Pending)>: UnsafeUnpin, *const ArcInner<HashMap<&'static str, ComponentType, FxBuildHasher>> is !null: UnsafeUnpin, PhantomData<ArcInner<HashMap<&'static str, ComponentType, FxBuildHasher>>>: UnsafeUnpin, *const ArcInner<HashMap<&'static str, ModuleType, FxBuildHasher>> is !null: UnsafeUnpin, PhantomData<ArcInner<HashMap<&'static str, ModuleType, FxBuildHasher>>>: UnsafeUnpin, *const ArcInner<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>> is !null: UnsafeUnpin, PhantomData<ArcInner<HashMap<(Option<&'static str>, &'static str), ClassType, FxBuildHasher>>>: UnsafeUnpin, *const ArcInner<(Vec<&'static str>, Vec<&'static str>)> is !null: UnsafeUnpin, PhantomData<ArcInner<(Vec<&'static str>, Vec<&'static str>)>>: UnsafeUnpin, *const ArcInner<Vec<&'static str>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<&'static str>>>: UnsafeUnpin, &'static str: UnsafeUnpin, *const ArcInner<Vec<(&'static [Os], &'static [AssetFile])>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<(&'static [Os], &'static [AssetFile])>>>: UnsafeUnpin, *const ArcInner<Vec<Registry>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Registry>>>: UnsafeUnpin, *const ArcInner<Vec<Arc<dyn Fn() + Sync + Send>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Arc<dyn Fn() + Sync + Send>>>>: UnsafeUnpin, *const ArcInner<Vec<(&'static str, Arc<dyn Fake>)>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<(&'static str, Arc<dyn Fake>)>>>: UnsafeUnpin, *const ArcInner<Vec<(&'static str, GpuSource)>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<(&'static str, GpuSource)>>>: UnsafeUnpin, PhantomData<(&'static str, Arc<ComponentSpec>)>: UnsafeUnpin, *const ArcInner<Tokens> is !null: UnsafeUnpin, PhantomData<ArcInner<Tokens>>: UnsafeUnpin, PhantomData<(u32, Box<Instance>)>: UnsafeUnpin, PhantomData<(u32, ByName)>: UnsafeUnpin, PhantomData<(u32, Arc<str>)>: UnsafeUnpin, PhantomData<(u32, SlotTarget)>: UnsafeUnpin, PhantomData<(StyleRefinement, Rc<ClassList>)>: UnsafeUnpin, PhantomData<((usize, usize), [Rc<ClassList>; 3])>: UnsafeUnpin, PhantomData<(u32, (Rc<dyn Fn(Child, Position) -> AnyElement>, u32))>: UnsafeUnpin, *const RcInner<Executor> is !null: UnsafeUnpin, PhantomData<RcInner<Executor>>: UnsafeUnpin, PhantomData<(u32, (Owner, WindowRef))>: UnsafeUnpin, PhantomData<(u32, (Option<WindowState>, Edges<Points>))>: UnsafeUnpin, PhantomData<(u64, StatusBarSetting)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<DialogReply>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Result<ImageSize, String>>>>)>: UnsafeUnpin, PhantomData<(u32, ClipboardRead)>: UnsafeUnpin, PhantomData<(u32, (Pick, Rc<RefCell<Output<Vec<PickedFile>>>>))>: UnsafeUnpin, PhantomData<(u32, AudioSink)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<NotificationPermission>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<bool>>>)>: UnsafeUnpin, *const RcInner<RefCell<Output<String>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<String>>>>: UnsafeUnpin, PhantomData<WebLink>: UnsafeUnpin, PhantomData<(u64, String)>: UnsafeUnpin, PhantomData<(u64, u64)>: UnsafeUnpin, PhantomData<(Option<u64>, Rc<RefCell<Output<String>>>)>: UnsafeUnpin, PhantomData<(String, Rc<RefCell<Output<String>>>)>: UnsafeUnpin, PhantomData<AppUrlChange>: UnsafeUnpin, *const RcInner<RefCell<Output<AppUrlChange>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<AppUrlChange>>>>: UnsafeUnpin, *const RcInner<RefCell<AppUrlState>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<AppUrlState>>>: UnsafeUnpin, PhantomData<SecondInstance>: UnsafeUnpin, *const RcInner<RefCell<Output<SecondInstance>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<SecondInstance>>>>: UnsafeUnpin, PhantomData<PathBuf>: UnsafeUnpin, *const RcInner<RefCell<Output<Vec<PathBuf>>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Output<Vec<PathBuf>>>>>: UnsafeUnpin, PhantomData<(u64, Rc<RefCell<Output<Result<Value, HostError>>>>)>: UnsafeUnpin, PhantomData<HostRequest>: UnsafeUnpin, PhantomData<(String, Value)>: UnsafeUnpin, PhantomData<Rc<RefCell<Output<ClipboardWrite>>>>: UnsafeUnpin, PhantomData<(u32, String)>: UnsafeUnpin, PhantomData<MainThreadTask>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Result<bool, AppSettingsError>>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Option<Hsla>>>>)>: UnsafeUnpin, PhantomData<(u32, FileAnswer)>: UnsafeUnpin, PhantomData<(u32, PendingFetch)>: UnsafeUnpin, PhantomData<(u32, HttpRequest)>: UnsafeUnpin, PhantomData<(u32, Awaited)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Option<Measurement>>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Option<ListScrollPosition>>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<Duration>>>)>: UnsafeUnpin, PhantomData<(u32, Rc<RefCell<Output<String>>>)>: UnsafeUnpin, PhantomData<(u32, PressEvent, Rc<RefCell<Output<bool>>>)>: UnsafeUnpin, PhantomData<(u32, Option<MouseEvent>)>: UnsafeUnpin, PhantomData<(Key, Session)>: UnsafeUnpin, PhantomData<(u64, Tracked)>: UnsafeUnpin, *const ArcInner<Mutex<VecDeque<Signal>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<VecDeque<Signal>>>>: UnsafeUnpin, *const ArcInner<Mutex<Option<Arc<dyn Fn() + Sync + Send>>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Option<Arc<dyn Fn() + Sync + Send>>>>>: UnsafeUnpin, *const ArcInner<Atomic<bool>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin, *mut Counter<Channel<Job>>: UnsafeUnpin, *mut Counter<Channel<Job>>: UnsafeUnpin, *mut Counter<Channel<Job>>: UnsafeUnpin, *const ArcInner<Mutex<CleanupState>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<CleanupState>>>: UnsafeUnpin, PhantomData<(u32, VirtualListState)>: UnsafeUnpin, PhantomData<(u32, u32, Box<dyn FnOnce(&(dyn Any + 'static)) -> Option<Result<Box<dyn ToJs>, Thrown>>>)>: UnsafeUnpin, PhantomData<(u32, (Owner, Signal<usize>))>: UnsafeUnpin, PhantomData<(u32, ListConfig)>: UnsafeUnpin, PhantomData<(u32, Edges<Points>)>: UnsafeUnpin, PhantomData<(u32, Vec<(u32, u32)>)>: UnsafeUnpin, PhantomData<Rc<RefCell<Output<Instant>>>>: UnsafeUnpin, PhantomData<Prop>: UnsafeUnpin, *const UnsafeCell<Graph<Rust>> is !null: UnsafeUnpin, PhantomData<UnsafeCell<Graph<Rust>>>: UnsafeUnpin, *const RcInner<RefCell<Vec<Patch>>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Vec<Patch>>>>: UnsafeUnpin, PhantomData<(u32, RegionState)>: UnsafeUnpin, *const RcInner<PostsInner> is !null: UnsafeUnpin, PhantomData<RcInner<PostsInner>>: UnsafeUnpin, PhantomData<(u32, Rc<RenderPlace>)>: UnsafeUnpin, PhantomData<((u32, Arc<str>), RenderSlot)>: UnsafeUnpin, PhantomData<(u32, (Arc<str>, u32))>: UnsafeUnpin, PhantomData<(u32, (Option<Rc<ClassList>>, SharedString, Option<Rc<ClassList>>))>: UnsafeUnpin, PhantomData<(u32, CoreTooltip)>: UnsafeUnpin, PhantomData<Op>: UnsafeUnpin, *const ArcInner<PerfMonitor> is !null: UnsafeUnpin, PhantomData<ArcInner<PerfMonitor>>: UnsafeUnpin, *const ArcInner<Mutex<Inner>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Inner>>>: UnsafeUnpin, *const ArcInner<CallCount> is !null: UnsafeUnpin, PhantomData<ArcInner<CallCount>>: UnsafeUnpin, *const ArcInner<dyn Network> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Network>>: UnsafeUnpin, *mut Counter<Channel<Message>>: UnsafeUnpin, *mut Counter<Channel<Message>>: UnsafeUnpin, *mut Counter<Channel<Message>>: UnsafeUnpin, PhantomData<(u32, FetchOp)>: UnsafeUnpin, PhantomData<(Requester, Inflight)>: UnsafeUnpin, *const ArcInner<dyn Assets> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Assets>>: UnsafeUnpin, *const ArcInner<Handle> is !null: UnsafeUnpin, PhantomData<ArcInner<Handle>>: UnsafeUnpin, *const ArcInner<Handle> is !null: UnsafeUnpin, PhantomData<ArcInner<Handle>>: UnsafeUnpin, PhantomData<HotUpdate>: UnsafeUnpin, PhantomData<(u32, ScrollEvent)>: UnsafeUnpin, *const TouchEvent is !null: UnsafeUnpin, PhantomData<TouchEvent>: UnsafeUnpin, PhantomData<(u32, EventPayload)>: UnsafeUnpin, PhantomData<((u8, u32, u32), usize)>: UnsafeUnpin, PhantomData<(u32, Size<Points>)>: UnsafeUnpin, *const JSContext is !null: UnsafeUnpin, *const ArcInner<Mutex<InnerRuntime>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<InnerRuntime>>>: UnsafeUnpin, *const RcInner<Scheduler> is !null: UnsafeUnpin, PhantomData<RcInner<Scheduler>>: UnsafeUnpin, *const RcInner<Shared> is !null: UnsafeUnpin, PhantomData<RcInner<Shared>>: UnsafeUnpin, *const dyn Fn(&JsError) is !null: UnsafeUnpin, PhantomData<dyn Fn(&JsError)>: UnsafeUnpin, *const RcInner<Cell<Option<Duration>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<Duration>>>>: UnsafeUnpin, *const RcInner<Cell<Option<Phase>>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Option<Phase>>>>: UnsafeUnpin, *const RcInner<Cell<Phase>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<Phase>>>: UnsafeUnpin, PhantomData<Persistent<Promise<'static>>>: UnsafeUnpin, *const RcInner<Cell<bool>> is !null: UnsafeUnpin, PhantomData<RcInner<Cell<bool>>>: UnsafeUnpin, *const RcInner<RefCell<Symbolicator>> is !null: UnsafeUnpin, PhantomData<RcInner<RefCell<Symbolicator>>>: UnsafeUnpin, *const ArcInner<PackageInfo> is !null: UnsafeUnpin, PhantomData<ArcInner<PackageInfo>>: UnsafeUnpin, *const ArcInner<dyn Trial> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Trial>>: UnsafeUnpin, *const RcInner<dyn MountSink> is !null: UnsafeUnpin, PhantomData<RcInner<dyn MountSink>>: UnsafeUnpin, *const ArcInner<Mutex<Manual>> is !null: UnsafeUnpin, PhantomData<ArcInner<Mutex<Manual>>>: UnsafeUnpin, *const ArcInner<HashMap<TypeId, Arc<dyn Any + Sync + Send>, FxBuildHasher>> is !null: UnsafeUnpin, PhantomData<ArcInner<HashMap<TypeId, Arc<dyn Any + Sync + Send>, FxBuildHasher>>>: UnsafeUnpin, *const ArcInner<Channel> is !null: UnsafeUnpin, PhantomData<ArcInner<Channel>>: UnsafeUnpin, *const ArcInner<Channel> is !null: UnsafeUnpin, PhantomData<ArcInner<Channel>>: UnsafeUnpin, PhantomData<Message>: UnsafeUnpin, *const ArcInner<Atomic<u8>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<u8>>>: UnsafeUnpin, *const ArcInner<dyn Fn() + Sync + Send> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Fn() + Sync + Send>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ParallelSend for T

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more