[{"data":1,"prerenderedAt":649},["ShallowReactive",2],{"docs:\u002Fauthoring\u002Fbackground-tasks":3,"docs-navigation:":105,"docs-locale-navigation":568,"i-tabler:chevron-down":644,"inrux-code-sfc:rs:let request = state.name.clone();\nmatch context.spawn_task(\n    move |cancellation| {\n        if cancellation.is_cancelled() {\n            return Err(\"Cancelled\".to_owned());\n        }\n        Ok::\u003C_, String>(format!(\"Prepared {request}\"))\n    },\n    |state, result, _context| {\n        state.message = match result {\n            Ok(message) => message,\n            Err(error) => format!(\"Task failed: {error:?}\"),\n        };\n    },\n) {\n    Ok(task) => state.task = Some(task),\n    Err(error) => state.message = error.to_string(),\n}\n":648},{"id":4,"title":5,"body":6,"description":94,"docs":95,"extension":96,"icon":95,"meta":97,"navigation":98,"path":100,"redirect":95,"seo":101,"space":102,"stem":103,"__hash__":104},"docs\u002F3.authoring\u002F09.background-tasks.md","Background tasks",{"type":7,"value":8,"toc":89},"minimark",[9,13,18,39,49,64,68,75,78],[10,11,12],"p",{},"Native input and painting run on the UI thread. Inrux serializes application handlers and state work on a coordinator. Slow handlers can still delay application updates, so move expensive work into the bounded task pool.",[14,15,17],"h2",{"id":16},"the-task-pattern","The task pattern",[19,20,21,25,33,36],"ol",{},[22,23,24],"li",{},"Copy or move the required inputs into owned values.",[22,26,27,28,32],{},"Submit work with ",[29,30,31],"code",{},"Context::spawn_task"," and handle admission failure.",[22,34,35],{},"Return a Result from the worker.",[22,37,38],{},"Apply the typed outcome to component state in the completion callback.",[40,41,47],"pre",{"className":42,"code":44,"language":45,"meta":46},[43],"language-rust","let request = state.name.clone();\nmatch context.spawn_task(\n    move |cancellation| {\n        if cancellation.is_cancelled() {\n            return Err(\"Cancelled\".to_owned());\n        }\n        Ok::\u003C_, String>(format!(\"Prepared {request}\"))\n    },\n    |state, result, _context| {\n        state.message = match result {\n            Ok(message) => message,\n            Err(error) => format!(\"Task failed: {error:?}\"),\n        };\n    },\n) {\n    Ok(task) => state.task = Some(task),\n    Err(error) => state.message = error.to_string(),\n}\n","rust","",[29,48,44],{"__ignoreMap":46},[10,50,51,52,55,56,59,60,63],{},"This fragment belongs in a handler whose State has String ",[29,53,54],{},"name","\u002F",[29,57,58],{},"message"," fields and an optional ",[29,61,62],{},"TaskHandle"," field. The trivial worker illustrates ownership; it does not need a background thread for performance.",[14,65,67],{"id":66},"cancellation-and-errors","Cancellation and errors",[10,69,70,71,74],{},"Keep the returned TaskHandle if you want an explicit Cancel button. ",[29,72,73],{},"cancel()"," requests cooperative cancellation and prevents stale completion delivery. It cannot interrupt arbitrary blocking Rust code. For superseded requests, cancel the old task or track a request ID before applying results.",[10,76,77],{},"The current pool has two workers and 16 pending slots. Handle queue saturation. Worker failures and panics return typed task outcomes; do not silently turn them into success.",[10,79,80,81,88],{},"Use the ",[82,83,87],"a",{"href":84,"rel":85},"https:\u002F\u002Fgithub.com\u002Figris-labs\u002Finrux\u002Fblob\u002Fmain\u002Fplayground\u002Fegui\u002Fsrc\u002Ffeatures\u002Fbackground.rs",[86],"nofollow","Background playground implementation"," for a complete cancellable example. The separate threads do not guarantee that an application can never lag.",{"title":46,"searchDepth":90,"depth":90,"links":91},2,[92,93],{"id":16,"depth":90,"text":17},{"id":66,"depth":90,"text":67},"Run slow work outside the coordinator and return typed results to component state.",null,"md",{},{"icon":99},"tabler:cpu","\u002Fauthoring\u002Fbackground-tasks",{"title":5,"description":94},false,"3.authoring\u002F09.background-tasks","fCQOB_b84441R4XklZ4BRhDbefkJ9ro4ZgLEbZjzG4A",[106,161,193,262,302,521],{"title":107,"navigation":108,"description":95,"space":102,"icon":95,"docs":95,"redirect":95,"path":109,"stem":110,"children":111,"page":102},"Getting started",true,"\u002Fgetting-started","1.getting-started",[112,119,126,133,140,147,154],{"title":113,"path":114,"stem":115,"navigation":116,"description":118,"space":102,"icon":117,"docs":95,"redirect":95},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F01.introduction",{"icon":117},"tabler:book-2","Build native Rust interfaces with reusable .iru components.",{"title":120,"path":121,"stem":122,"navigation":123,"description":125,"space":102,"icon":124,"docs":95,"redirect":95},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F02.installation",{"icon":124},"tabler:download","Install the native build tools, clone Inrux and run your first application.",{"title":127,"path":128,"stem":129,"navigation":130,"description":132,"space":102,"icon":131,"docs":95,"redirect":95},"Your first application","\u002Fgetting-started\u002Ffirst-app","1.getting-started\u002F03.first-app",{"icon":131},"tabler:rocket","Create a project, mount App.iru and connect a button to local state.",{"title":134,"path":135,"stem":136,"navigation":137,"description":139,"space":102,"icon":138,"docs":95,"redirect":95},"Project structure","\u002Fgetting-started\u002Fproject-structure","1.getting-started\u002F04.project-structure",{"icon":138},"tabler:folders","Find the framework crates, native examples, editor tools and application folders.",{"title":141,"path":142,"stem":143,"navigation":144,"description":146,"space":102,"icon":145,"docs":95,"redirect":95},"Playgrounds","\u002Fgetting-started\u002Fplaygrounds","1.getting-started\u002F05.playgrounds",{"icon":145},"tabler:device-desktop","Run the same component catalogue with egui, Masonry or GPUI.",{"title":148,"path":149,"stem":150,"navigation":151,"description":153,"space":102,"icon":152,"docs":95,"redirect":95},"VS Code","\u002Fgetting-started\u002Fvscode","1.getting-started\u002F06.vscode",{"icon":152},"tabler:code","Set up .iru icons, completion, formatting, navigation and Rust support.",{"title":155,"path":156,"stem":157,"navigation":158,"description":160,"space":102,"icon":159,"docs":95,"redirect":95},"Alpha status","\u002Fgetting-started\u002Fstatus","1.getting-started\u002F07.status",{"icon":159},"tabler:flask","Check what works today and which features still need implementation or platform testing.",{"title":162,"navigation":108,"description":95,"space":102,"icon":95,"docs":95,"redirect":95,"path":163,"stem":164,"children":165,"page":102},"Architecture","\u002Finternals","2.internals",[166,172,179,186],{"title":162,"path":167,"stem":168,"navigation":169,"description":171,"space":102,"icon":170,"docs":95,"redirect":95},"\u002Finternals\u002Farchitecture","2.internals\u002F01.architecture",{"icon":170},"tabler:sitemap","Follow compilation, state ownership, threads and the native adapter boundary.",{"title":173,"path":174,"stem":175,"navigation":176,"description":178,"space":102,"icon":177,"docs":95,"redirect":95},"Adapter services","\u002Finternals\u002Fadapter-services","2.internals\u002F02.adapter-services",{"icon":177},"tabler:plug","Understand provider contracts, capabilities, fallback selection and component prerequisites.",{"title":180,"path":181,"stem":182,"navigation":183,"description":185,"space":102,"icon":184,"docs":95,"redirect":95},"Text rendering","\u002Finternals\u002Ftext-rendering","2.internals\u002F03.text-rendering",{"icon":184},"tabler:typography","Learn how shared shaping and glyph rasterization reduce differences between engines.",{"title":187,"path":188,"stem":189,"navigation":190,"description":192,"space":102,"icon":191,"docs":95,"redirect":95},"Headless components","\u002Finternals\u002Fheadless-components","2.internals\u002F04.headless-components",{"icon":191},"tabler:components","Separate interaction behavior from application appearance and themes.",{"title":194,"navigation":108,"description":95,"space":102,"icon":95,"docs":95,"redirect":95,"path":195,"stem":196,"children":197,"page":102},"Writing components","\u002Fauthoring","3.authoring",[198,205,211,218,225,232,239,246,253,255],{"title":199,"path":200,"stem":201,"navigation":202,"description":204,"space":102,"icon":203,"docs":95,"redirect":95},"The .iru format","\u002Fauthoring\u002Firu-format","3.authoring\u002F01.iru-format",{"icon":203},"tabler:file-code","Learn what goes in a component file, why Inrux uses SFCs and when to move code out.",{"title":206,"path":207,"stem":208,"navigation":209,"description":210,"space":102,"icon":191,"docs":95,"redirect":95},"Component contract","\u002Fauthoring\u002Fcomponent-contract","3.authoring\u002F02.component-contract",{"icon":191},"Write imports, props, events, models, keyed children and component state.",{"title":212,"path":213,"stem":214,"navigation":215,"description":217,"space":102,"icon":216,"docs":95,"redirect":95},"Props, events and models","\u002Fauthoring\u002Fprops-events-models","3.authoring\u002F03.props-events-models",{"icon":216},"tabler:arrows-exchange","Pass values down, send typed events up and bind controlled values.",{"title":219,"path":220,"stem":221,"navigation":222,"description":224,"space":102,"icon":223,"docs":95,"redirect":95},"State and computed values","\u002Fauthoring\u002Fstate-and-computed","3.authoring\u002F04.state-and-computed",{"icon":223},"tabler:bolt","Update local fields, share reactive handles and derive cached values.",{"title":226,"path":227,"stem":228,"navigation":229,"description":231,"space":102,"icon":230,"docs":95,"redirect":95},"Conditions, lists and dynamic components","\u002Fauthoring\u002Fcontrol-flow","3.authoring\u002F05.control-flow",{"icon":230},"tabler:git-branch","Render branches, preserve list identity and select imported components.",{"title":233,"path":234,"stem":235,"navigation":236,"description":238,"space":102,"icon":237,"docs":95,"redirect":95},"Children and layouts","\u002Fauthoring\u002Fchildren-and-layouts","3.authoring\u002F06.children-and-layouts",{"icon":237},"tabler:layout","Pass default child content through reusable application shells.",{"title":240,"path":241,"stem":242,"navigation":243,"description":245,"space":102,"icon":244,"docs":95,"redirect":95},"Separating business logic","\u002Fauthoring\u002Fbusiness-logic","3.authoring\u002F07.business-logic",{"icon":244},"tabler:briefcase","Keep component interactions nearby and domain behavior reusable in Rust modules.",{"title":247,"path":248,"stem":249,"navigation":250,"description":252,"space":102,"icon":251,"docs":95,"redirect":95},"Lifecycle and refs","\u002Fauthoring\u002Flifecycle-and-refs","3.authoring\u002F08.lifecycle-and-refs",{"icon":251},"tabler:refresh","Understand setup, mount identity, cleanup and the limits of native refs.",{"title":5,"path":100,"stem":103,"navigation":254,"description":94,"space":102,"icon":99,"docs":95,"redirect":95},{"icon":99},{"title":256,"path":257,"stem":258,"navigation":259,"description":261,"space":102,"icon":260,"docs":95,"redirect":95},"Provide and inject","\u002Fauthoring\u002Fdependency-injection","3.authoring\u002F10.dependency-injection",{"icon":260},"tabler:plug-connected","Share typed services through a component subtree without prop drilling.",{"title":263,"navigation":108,"description":95,"space":102,"icon":95,"docs":95,"redirect":95,"path":264,"stem":265,"children":266,"page":102},"Styling","\u002Fstyling","4.styling",[267,274,281,288,295],{"title":268,"path":269,"stem":270,"navigation":271,"description":273,"space":102,"icon":272,"docs":95,"redirect":95},"Styling basics","\u002Fstyling\u002Foverview","4.styling\u002F01.overview",{"icon":272},"tabler:palette","Style headless components with CSS-like rules or Rust values.",{"title":275,"path":276,"stem":277,"navigation":278,"description":280,"space":102,"icon":279,"docs":95,"redirect":95},"CSS reference","\u002Fstyling\u002Fcss-reference","4.styling\u002F02.css-reference",{"icon":279},"tabler:file-type-css","Use the supported selectors, properties, cascade and compiled style rules.",{"title":282,"path":283,"stem":284,"navigation":285,"description":287,"space":102,"icon":286,"docs":95,"redirect":95},"Parts and states","\u002Fstyling\u002Fparts-and-states","4.styling\u002F03.parts-and-states",{"icon":286},"tabler:puzzle","Style exposed control parts and interaction states without native widget handles.",{"title":289,"path":290,"stem":291,"navigation":292,"description":294,"space":102,"icon":293,"docs":95,"redirect":95},"Color values","\u002Fstyling\u002Fcolors","4.styling\u002F04.colors",{"icon":293},"tabler:color-swatch","Write literal CSS colors and understand alpha and color-space limits.",{"title":296,"path":297,"stem":298,"navigation":299,"description":301,"space":102,"icon":300,"docs":95,"redirect":95},"Themes and responsiveness","\u002Fstyling\u002Fthemes-and-responsiveness","4.styling\u002F05.themes-and-responsiveness",{"icon":300},"tabler:sun-moon","Compile complete theme sheets and respond to logical viewport dimensions.",{"title":303,"navigation":108,"description":95,"space":102,"icon":95,"docs":95,"redirect":95,"path":304,"stem":305,"children":306,"page":102},"Components","\u002Fcomponents","5.components",[307,314,321,328,335,342,349,356,363,370,377,384,391,398,405,412,419,426,433,439,446,453,460,467,473,480,487,494,501,507,514],{"title":308,"path":309,"stem":310,"navigation":311,"description":313,"space":102,"icon":312,"docs":95,"redirect":95},"AspectRatio","\u002Fcomponents\u002Faspect-ratio","5.components\u002Faspect-ratio",{"icon":312},"tabler:aspect-ratio","Size a container around a positive width-to-height ratio.",{"title":315,"path":316,"stem":317,"navigation":318,"description":320,"space":102,"icon":319,"docs":95,"redirect":95},"Badge","\u002Fcomponents\u002Fbadge","5.components\u002Fbadge",{"icon":319},"tabler:badge","Display a short status label.",{"title":322,"path":323,"stem":324,"navigation":325,"description":327,"space":102,"icon":326,"docs":95,"redirect":95},"Box","\u002Fcomponents\u002Fbox","5.components\u002Fbox",{"icon":326},"tabler:box","Create a physical vertical container.",{"title":329,"path":330,"stem":331,"navigation":332,"description":334,"space":102,"icon":333,"docs":95,"redirect":95},"Button","\u002Fcomponents\u002Fbutton","5.components\u002Fbutton",{"icon":333},"tabler:hand-click","Trigger an action from a labeled control.",{"title":336,"path":337,"stem":338,"navigation":339,"description":341,"space":102,"icon":340,"docs":95,"redirect":95},"Card","\u002Fcomponents\u002Fcard","5.components\u002Fcard",{"icon":340},"tabler:id","Group related child content in a surface.",{"title":343,"path":344,"stem":345,"navigation":346,"description":348,"space":102,"icon":347,"docs":95,"redirect":95},"Center","\u002Fcomponents\u002Fcenter","5.components\u002Fcenter",{"icon":347},"tabler:align-box-center-middle","Center a group within available free space.",{"title":350,"path":351,"stem":352,"navigation":353,"description":355,"space":102,"icon":354,"docs":95,"redirect":95},"Checkbox","\u002Fcomponents\u002Fcheckbox","5.components\u002Fcheckbox",{"icon":354},"tabler:checkbox","Control a labeled boolean choice.",{"title":357,"path":358,"stem":359,"navigation":360,"description":362,"space":102,"icon":361,"docs":95,"redirect":95},"Column","\u002Fcomponents\u002Fcolumn","5.components\u002Fcolumn",{"icon":361},"tabler:layout-list","Arrange child nodes vertically.",{"title":364,"path":365,"stem":366,"navigation":367,"description":369,"space":102,"icon":368,"docs":95,"redirect":95},"Container","\u002Fcomponents\u002Fcontainer","5.components\u002Fcontainer",{"icon":368},"tabler:container","Constrain and center a reading or application column.",{"title":371,"path":372,"stem":373,"navigation":374,"description":376,"space":102,"icon":375,"docs":95,"redirect":95},"Content reference","\u002Fcomponents\u002Fcontent-reference","5.components\u002Fcontent-reference",{"icon":375},"tabler:file-description","Compose cards, badges and separators with shared component descriptions.",{"title":378,"path":379,"stem":380,"navigation":381,"description":383,"space":102,"icon":382,"docs":95,"redirect":95},"Dialog","\u002Fcomponents\u002Fdialog","5.components\u002Fdialog",{"icon":382},"tabler:message","Show an egui-only modal prototype.",{"title":385,"path":386,"stem":387,"navigation":388,"description":390,"space":102,"icon":389,"docs":95,"redirect":95},"Flex","\u002Fcomponents\u002Fflex","5.components\u002Fflex",{"icon":389},"tabler:layout-distribute-horizontal","Choose a flexible layout direction and wrapping policy.",{"title":392,"path":393,"stem":394,"navigation":395,"description":397,"space":102,"icon":396,"docs":95,"redirect":95},"Grid","\u002Fcomponents\u002Fgrid","5.components\u002Fgrid",{"icon":396},"tabler:layout-grid","Arrange direct children in equal-width columns.",{"title":399,"path":400,"stem":401,"navigation":402,"description":404,"space":102,"icon":403,"docs":95,"redirect":95},"Heartbeat","\u002Fcomponents\u002Fheartbeat","5.components\u002Fheartbeat",{"icon":403},"tabler:heartbeat","Inspect an egui-only UI-thread animation diagnostic.",{"title":406,"path":407,"stem":408,"navigation":409,"description":411,"space":102,"icon":410,"docs":95,"redirect":95},"Input","\u002Fcomponents\u002Finput","5.components\u002Finput",{"icon":410},"tabler:forms","Edit a controlled single-line string.",{"title":413,"path":414,"stem":415,"navigation":416,"description":418,"space":102,"icon":417,"docs":95,"redirect":95},"Layout reference","\u002Fcomponents\u002Flayout-reference","5.components\u002Flayout-reference",{"icon":417},"tabler:layout-dashboard","Understand sizing, centering, spacing, flex, grid and aspect-ratio behavior.",{"title":420,"path":421,"stem":422,"navigation":423,"description":425,"space":102,"icon":424,"docs":95,"redirect":95},"Markdown","\u002Fcomponents\u002Fmarkdown","5.components\u002Fmarkdown",{"icon":424},"tabler:markdown","Render a subset of CommonMark through existing native components.",{"title":427,"path":428,"stem":429,"navigation":430,"description":432,"space":102,"icon":431,"docs":95,"redirect":95},"Meter","\u002Fcomponents\u002Fmeter","5.components\u002Fmeter",{"icon":431},"tabler:gauge","Show a finite measurement within explicit bounds.",{"title":434,"path":435,"stem":436,"navigation":437,"description":438,"space":102,"icon":191,"docs":95,"redirect":95},"Component catalogue","\u002Fcomponents\u002Foverview","5.components\u002Foverview",{"icon":191},"Choose a portable control or layout primitive and check its current API.",{"title":440,"path":441,"stem":442,"navigation":443,"description":445,"space":102,"icon":444,"docs":95,"redirect":95},"Progress","\u002Fcomponents\u002Fprogress","5.components\u002Fprogress",{"icon":444},"tabler:progress","Show a finite amount of completed work.",{"title":447,"path":448,"stem":449,"navigation":450,"description":452,"space":102,"icon":451,"docs":95,"redirect":95},"Boolean and range reference","\u002Fcomponents\u002Frange-reference","5.components\u002Frange-reference",{"icon":451},"tabler:adjustments-horizontal","Use controlled switches and validated progress and measurement ranges.",{"title":454,"path":455,"stem":456,"navigation":457,"description":459,"space":102,"icon":458,"docs":95,"redirect":95},"Row","\u002Fcomponents\u002Frow","5.components\u002Frow",{"icon":458},"tabler:columns","Arrange child nodes horizontally.",{"title":461,"path":462,"stem":463,"navigation":464,"description":466,"space":102,"icon":465,"docs":95,"redirect":95},"ScrollArea","\u002Fcomponents\u002Fscroll-area","5.components\u002Fscroll-area",{"icon":465},"tabler:arrows-vertical","Clip and scroll bounded child content.",{"title":468,"path":469,"stem":470,"navigation":471,"description":472,"space":102,"icon":465,"docs":95,"redirect":95},"Scrolling reference","\u002Fcomponents\u002Fscrolling-reference","5.components\u002Fscrolling-reference",{"icon":465},"Use viewport commands, observations, clipping and native input direction.",{"title":474,"path":475,"stem":476,"navigation":477,"description":479,"space":102,"icon":478,"docs":95,"redirect":95},"Select","\u002Fcomponents\u002Fselect","5.components\u002Fselect",{"icon":478},"tabler:selector","Choose a controlled string value from options.",{"title":481,"path":482,"stem":483,"navigation":484,"description":486,"space":102,"icon":485,"docs":95,"redirect":95},"Separator","\u002Fcomponents\u002Fseparator","5.components\u002Fseparator",{"icon":485},"tabler:separator","Draw a decorative divider.",{"title":488,"path":489,"stem":490,"navigation":491,"description":493,"space":102,"icon":492,"docs":95,"redirect":95},"Spacer","\u002Fcomponents\u002Fspacer","5.components\u002Fspacer",{"icon":492},"tabler:space","Consume free main-axis space in a Row or Column.",{"title":495,"path":496,"stem":497,"navigation":498,"description":500,"space":102,"icon":499,"docs":95,"redirect":95},"Switch","\u002Fcomponents\u002Fswitch","5.components\u002Fswitch",{"icon":499},"tabler:toggle-left","Turn a labeled setting on or off.",{"title":502,"path":503,"stem":504,"navigation":505,"description":506,"space":102,"icon":184,"docs":95,"redirect":95},"Text","\u002Fcomponents\u002Ftext","5.components\u002Ftext",{"icon":184},"Display text with shared shaping and glyph pixels.",{"title":508,"path":509,"stem":510,"navigation":511,"description":513,"space":102,"icon":512,"docs":95,"redirect":95},"TextArea","\u002Fcomponents\u002Ftext-area","5.components\u002Ftext-area",{"icon":512},"tabler:align-left","Edit multiline text with wrapping and caret scrolling.",{"title":515,"path":516,"stem":517,"navigation":518,"description":520,"space":102,"icon":519,"docs":95,"redirect":95},"Text editing reference","\u002Fcomponents\u002Ftext-editing-reference","5.components\u002Ftext-editing-reference",{"icon":519},"tabler:text-wrap","Choose single-line Input or multiline TextArea and bind controlled text.",{"title":522,"navigation":108,"description":95,"space":102,"icon":95,"docs":95,"redirect":95,"path":523,"stem":524,"children":525,"page":102},"Tooling and contribution","\u002Ftooling","6.tooling",[526,533,540,547,554,561],{"title":527,"path":528,"stem":529,"navigation":530,"description":532,"space":102,"icon":531,"docs":95,"redirect":95},"CLI","\u002Ftooling\u002Fcli","6.tooling\u002F01.cli",{"icon":531},"tabler:terminal-2","Scaffold, validate and run applications through Cargo.",{"title":534,"path":535,"stem":536,"navigation":537,"description":539,"space":102,"icon":538,"docs":95,"redirect":95},"Contributing","\u002Ftooling\u002Fcontributing","6.tooling\u002F02.contributing",{"icon":538},"tabler:git-pull-request","Keep modules focused, preserve backend boundaries and run the relevant checks.",{"title":541,"path":542,"stem":543,"navigation":544,"description":546,"space":102,"icon":545,"docs":95,"redirect":95},"Working on this website","\u002Ftooling\u002Fdocumentation","6.tooling\u002F03.documentation",{"icon":545},"tabler:notebook","Run, edit, validate and export the Nuxt documentation site.",{"title":548,"path":549,"stem":550,"navigation":551,"description":553,"space":102,"icon":552,"docs":95,"redirect":95},"Troubleshooting","\u002Ftooling\u002Ftroubleshooting","6.tooling\u002F04.troubleshooting",{"icon":552},"tabler:bug","Resolve common compiler, native build and editor setup problems.",{"title":555,"path":556,"stem":557,"navigation":558,"description":560,"space":102,"icon":559,"docs":95,"redirect":95},"Rust API reference","\u002Ftooling\u002Frust-api","6.tooling\u002F05.rust-api",{"icon":559},"tabler:api","Find the public Rust types, build local rustdoc and inspect individual package APIs.",{"title":562,"path":563,"stem":564,"navigation":565,"description":567,"space":102,"icon":566,"docs":95,"redirect":95},"License and notices","\u002Ftooling\u002Flicense","6.tooling\u002F06.license",{"icon":566},"tabler:scale","Understand the license for Inrux code and the notices retained for dependencies and fonts.",[569,578,584,596,603,636],{"title":107,"space":102,"redirect":95,"path":109,"stem":110,"children":570,"page":102},[571,572,573,574,575,576,577],{"title":113,"path":114,"stem":115,"space":102,"redirect":95,"icon":117},{"title":120,"path":121,"stem":122,"space":102,"redirect":95,"icon":124},{"title":127,"path":128,"stem":129,"space":102,"redirect":95,"icon":131},{"title":134,"path":135,"stem":136,"space":102,"redirect":95,"icon":138},{"title":141,"path":142,"stem":143,"space":102,"redirect":95,"icon":145},{"title":148,"path":149,"stem":150,"space":102,"redirect":95,"icon":152},{"title":155,"path":156,"stem":157,"space":102,"redirect":95,"icon":159},{"title":162,"space":102,"redirect":95,"path":163,"stem":164,"children":579,"page":102},[580,581,582,583],{"title":162,"path":167,"stem":168,"space":102,"redirect":95,"icon":170},{"title":173,"path":174,"stem":175,"space":102,"redirect":95,"icon":177},{"title":180,"path":181,"stem":182,"space":102,"redirect":95,"icon":184},{"title":187,"path":188,"stem":189,"space":102,"redirect":95,"icon":191},{"title":194,"space":102,"redirect":95,"path":195,"stem":196,"children":585,"page":102},[586,587,588,589,590,591,592,593,594,595],{"title":199,"path":200,"stem":201,"space":102,"redirect":95,"icon":203},{"title":206,"path":207,"stem":208,"space":102,"redirect":95,"icon":191},{"title":212,"path":213,"stem":214,"space":102,"redirect":95,"icon":216},{"title":219,"path":220,"stem":221,"space":102,"redirect":95,"icon":223},{"title":226,"path":227,"stem":228,"space":102,"redirect":95,"icon":230},{"title":233,"path":234,"stem":235,"space":102,"redirect":95,"icon":237},{"title":240,"path":241,"stem":242,"space":102,"redirect":95,"icon":244},{"title":247,"path":248,"stem":249,"space":102,"redirect":95,"icon":251},{"title":5,"path":100,"stem":103,"space":102,"redirect":95,"icon":99},{"title":256,"path":257,"stem":258,"space":102,"redirect":95,"icon":260},{"title":263,"space":102,"redirect":95,"path":264,"stem":265,"children":597,"page":102},[598,599,600,601,602],{"title":268,"path":269,"stem":270,"space":102,"redirect":95,"icon":272},{"title":275,"path":276,"stem":277,"space":102,"redirect":95,"icon":279},{"title":282,"path":283,"stem":284,"space":102,"redirect":95,"icon":286},{"title":289,"path":290,"stem":291,"space":102,"redirect":95,"icon":293},{"title":296,"path":297,"stem":298,"space":102,"redirect":95,"icon":300},{"title":303,"space":102,"redirect":95,"path":304,"stem":305,"children":604,"page":102},[605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635],{"title":308,"path":309,"stem":310,"space":102,"redirect":95,"icon":312},{"title":315,"path":316,"stem":317,"space":102,"redirect":95,"icon":319},{"title":322,"path":323,"stem":324,"space":102,"redirect":95,"icon":326},{"title":329,"path":330,"stem":331,"space":102,"redirect":95,"icon":333},{"title":336,"path":337,"stem":338,"space":102,"redirect":95,"icon":340},{"title":343,"path":344,"stem":345,"space":102,"redirect":95,"icon":347},{"title":350,"path":351,"stem":352,"space":102,"redirect":95,"icon":354},{"title":357,"path":358,"stem":359,"space":102,"redirect":95,"icon":361},{"title":364,"path":365,"stem":366,"space":102,"redirect":95,"icon":368},{"title":371,"path":372,"stem":373,"space":102,"redirect":95,"icon":375},{"title":378,"path":379,"stem":380,"space":102,"redirect":95,"icon":382},{"title":385,"path":386,"stem":387,"space":102,"redirect":95,"icon":389},{"title":392,"path":393,"stem":394,"space":102,"redirect":95,"icon":396},{"title":399,"path":400,"stem":401,"space":102,"redirect":95,"icon":403},{"title":406,"path":407,"stem":408,"space":102,"redirect":95,"icon":410},{"title":413,"path":414,"stem":415,"space":102,"redirect":95,"icon":417},{"title":420,"path":421,"stem":422,"space":102,"redirect":95,"icon":424},{"title":427,"path":428,"stem":429,"space":102,"redirect":95,"icon":431},{"title":434,"path":435,"stem":436,"space":102,"redirect":95,"icon":191},{"title":440,"path":441,"stem":442,"space":102,"redirect":95,"icon":444},{"title":447,"path":448,"stem":449,"space":102,"redirect":95,"icon":451},{"title":454,"path":455,"stem":456,"space":102,"redirect":95,"icon":458},{"title":461,"path":462,"stem":463,"space":102,"redirect":95,"icon":465},{"title":468,"path":469,"stem":470,"space":102,"redirect":95,"icon":465},{"title":474,"path":475,"stem":476,"space":102,"redirect":95,"icon":478},{"title":481,"path":482,"stem":483,"space":102,"redirect":95,"icon":485},{"title":488,"path":489,"stem":490,"space":102,"redirect":95,"icon":492},{"title":495,"path":496,"stem":497,"space":102,"redirect":95,"icon":499},{"title":502,"path":503,"stem":504,"space":102,"redirect":95,"icon":184},{"title":508,"path":509,"stem":510,"space":102,"redirect":95,"icon":512},{"title":515,"path":516,"stem":517,"space":102,"redirect":95,"icon":519},{"title":522,"space":102,"redirect":95,"path":523,"stem":524,"children":637,"page":102},[638,639,640,641,642,643],{"title":527,"path":528,"stem":529,"space":102,"redirect":95,"icon":531},{"title":534,"path":535,"stem":536,"space":102,"redirect":95,"icon":538},{"title":541,"path":542,"stem":543,"space":102,"redirect":95,"icon":545},{"title":548,"path":549,"stem":550,"space":102,"redirect":95,"icon":552},{"title":555,"path":556,"stem":557,"space":102,"redirect":95,"icon":559},{"title":562,"path":563,"stem":564,"space":102,"redirect":95,"icon":566},{"left":645,"top":645,"width":646,"height":646,"rotate":645,"vFlip":102,"hFlip":102,"body":647},0,24,"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 9l6 6l6-6\"\u002F>","\u003Cspan class=\"shj-syn-kwd\">let\u003C\u002Fspan> request \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>name\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">clone\u003C\u002Fspan>();\n\u003Cspan class=\"shj-syn-kwd\">match\u003C\u002Fspan> context\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">spawn_task\u003C\u002Fspan>(\n    \u003Cspan class=\"shj-syn-kwd\">move\u003C\u002Fspan> \u003Cspan class=\"shj-syn-oper\">|\u003C\u002Fspan>cancellation\u003Cspan class=\"shj-syn-oper\">|\u003C\u002Fspan> {\n        \u003Cspan class=\"shj-syn-control\">if\u003C\u002Fspan> cancellation\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">is_cancelled\u003C\u002Fspan>() {\n            \u003Cspan class=\"shj-syn-control\">return\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">Err\u003C\u002Fspan>(\u003Cspan class=\"shj-syn-str\">\"Cancelled\"\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">to_owned\u003C\u002Fspan>());\n        }\n        \u003Cspan class=\"shj-syn-class\">Ok\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">::&lt;\u003C\u002Fspan>_\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">String\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">&gt;\u003C\u002Fspan>(\u003Cspan class=\"shj-syn-func\">format\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">!\u003C\u002Fspan>(\u003Cspan class=\"shj-syn-str\">\"Prepared {request}\"\u003C\u002Fspan>))\n    }\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan>\n    \u003Cspan class=\"shj-syn-oper\">|\u003C\u002Fspan>state\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan> result\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan> _context\u003Cspan class=\"shj-syn-oper\">|\u003C\u002Fspan> {\n        state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>message \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-kwd\">match\u003C\u002Fspan> result {\n            \u003Cspan class=\"shj-syn-class\">Ok\u003C\u002Fspan>(message) \u003Cspan class=\"shj-syn-oper\">=&gt;\u003C\u002Fspan> message\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan>\n            \u003Cspan class=\"shj-syn-class\">Err\u003C\u002Fspan>(error) \u003Cspan class=\"shj-syn-oper\">=&gt;\u003C\u002Fspan> \u003Cspan class=\"shj-syn-func\">format\u003C\u002Fspan>\u003Cspan class=\"shj-syn-oper\">!\u003C\u002Fspan>(\u003Cspan class=\"shj-syn-str\">\"Task failed: {error:?}\"\u003C\u002Fspan>)\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan>\n        };\n    }\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan>\n) {\n    \u003Cspan class=\"shj-syn-class\">Ok\u003C\u002Fspan>(task) \u003Cspan class=\"shj-syn-oper\">=&gt;\u003C\u002Fspan> state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>task \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> \u003Cspan class=\"shj-syn-class\">Some\u003C\u002Fspan>(task)\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan>\n    \u003Cspan class=\"shj-syn-class\">Err\u003C\u002Fspan>(error) \u003Cspan class=\"shj-syn-oper\">=&gt;\u003C\u002Fspan> state\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>message \u003Cspan class=\"shj-syn-oper\">=\u003C\u002Fspan> error\u003Cspan class=\"shj-syn-oper\">.\u003C\u002Fspan>\u003Cspan class=\"shj-syn-func\">to_string\u003C\u002Fspan>()\u003Cspan class=\"shj-syn-oper\">,\u003C\u002Fspan>\n}\n",1794980346339]