MCPcopy Create free account

hub / github.com/davidpdrsn/axum-live-view / functions

Functions252 in github.com/davidpdrsn/axum-live-view

↓ 102 callersMethodmap
Map the messages to a different type.
axum-live-view/src/html/mod.rs:114
↓ 72 callersMethodclone
(&self)
axum-live-view/src/live_view/mod.rs:339
↓ 37 callersMethodwith
Include a [`JsCommand`] with this update. [`JsCommand`] can be used to perform updates that can't otherwise be done with [`LiveView::render`], such a
axum-live-view/src/live_view/mod.rs:158
↓ 36 callersFunctionrender
(x: bool)
axum-live-view/src/html/tests.rs:198
↓ 21 callersMethodsend
Send the view a message This calls [`LiveView::update`] on the view followed by [`LiveView::render`] and returns the HTML template and any [`JsComman
axum-live-view/src/test.rs:188
↓ 17 callersMethodmap
(self, f: F)
axum-live-view-macros/src/lib.rs:386
↓ 15 callersMethodappend
(&mut self, part: impl AsRef<str>)
axum-live-view-macros/src/lib.rs:551
↓ 13 callersFunctiond
(e,t,n,o,i,r,a)
assets-precompiled/axum_live_view.min.js:1
↓ 13 callersFunctionon
( socket: WebSocket, options: LiveViewOptions, element: Element, listenForEventOn: Element | typeof do
assets/src/live_view.ts:399
↓ 11 callersMethodclone
(&self)
axum-live-view/src/life_cycle.rs:242
↓ 11 callersMethodextend
(&mut self, iter: I)
axum-live-view/src/live_view/mod.rs:206
↓ 8 callersFunctionh
(e)
assets-precompiled/axum_live_view.min.js:1
↓ 6 callersMethodinto_response
(self)
axum-live-view/src/html/mod.rs:141
↓ 6 callersMethodstart_new_part
(&mut self)
axum-live-view-macros/src/lib.rs:562
↓ 6 callersFunctionu
(e,t,n)
assets-precompiled/axum_live_view.min.js:1
↓ 6 callersFunctionwrite_message
(write: &mut W, data: MessageToSocketData)
axum-live-view/src/life_cycle.rs:407
↓ 5 callersMethodas_input
Get the inner [`Input`] if any.
axum-live-view/src/event_data.rs:55
↓ 5 callersMethodas_str
(&self)
axum-live-view/src/event_data.rs:263
↓ 5 callersMethodparse
(input: ParseStream)
axum-live-view-macros/src/lib.rs:78
↓ 5 callersFunctionprecompiled_js
()
axum-live-view/src/lib.rs:339
↓ 5 callersFunctionproject_root
()
xtask/src/main.rs:173
↓ 5 callersMethodrender
(&self)
axum-live-view/src/life_cycle.rs:284
↓ 5 callersMethodresponse
Return a response that contains an embedded live view. # Example ```rust use axum::response::IntoResponse; use axum_live_view::{ event_data::EventDa
axum-live-view/src/extract.rs:107
↓ 4 callersFunctionH
(e,t,n)
assets-precompiled/axum_live_view.min.js:1
↓ 4 callersFunctionO
(e)
assets-precompiled/axum_live_view.min.js:1
↓ 4 callersFunctioninputValue
(element: Element)
assets/src/live_view.ts:540
↓ 4 callersFunctionm
(e)
assets-precompiled/axum_live_view.min.js:1
↓ 4 callersFunctionpretty_print
(t: T)
axum-live-view/src/html/tests.rs:6
↓ 4 callersFunctionrender_one
(ns: &[i32])
axum-live-view/src/html/tests.rs:639
↓ 4 callersFunctionrender_two
(ns: &[i32])
axum-live-view/src/html/tests.rs:649
↓ 4 callersFunctionrun_cmd
(mut cmd: Command)
xtask/src/main.rs:166
↓ 3 callersMethodas_form
Get the inner [`Form`] if any.
axum-live-view/src/event_data.rs:46
↓ 3 callersFunctionb
(e,t)
assets-precompiled/axum_live_view.min.js:1
↓ 3 callersMethoddiff
(&self, other: &'a Self)
axum-live-view/src/html/diff.rs:68
↓ 3 callersFunctionl
(e,t,n)
assets-precompiled/axum_live_view.min.js:1
↓ 3 callersFunctionn
(e,t)
assets-precompiled/axum_live_view.min.js:1
↓ 3 callersFunctiono
(e,t)
assets-precompiled/axum_live_view.min.js:1
↓ 3 callersFunctionpatchTemplate
(template: Template, diff: TemplateDiff)
assets/src/live_view.ts:667
↓ 3 callersFunctionspawn_unit
Spawn a future that is required to yield `()`. This means the future is required to handle all errors.
axum-live-view/src/util/mod.rs:9
↓ 3 callersFunctionwrap_in_live_view_container
(markup: Html<T>)
axum-live-view/src/life_cycle.rs:540
↓ 3 callersFunctionzip
(a: T, b: K)
axum-live-view/src/html/diff.rs:219
↓ 2 callersFunctionI
(e,t,n)
assets-precompiled/axum_live_view.min.js:1
↓ 2 callersFunctionaddEventListeners
( socket: WebSocket, element: Element, options: LiveViewOptions, )
assets/src/live_view.ts:207
↓ 2 callersFunctionconnect
(options: LiveViewOptions)
assets/src/live_view.ts:30
↓ 2 callersMethoddeserialize
Deserialize the form into some type.
axum-live-view/src/event_data.rs:172
↓ 2 callersMethodfrom
(x: S)
axum-live-view/src/html/mod.rs:61
↓ 2 callersMethodmount
( &self, uri: Uri, headers: HeaderMap, handle: ViewHandle<M>, )
axum-live-view/src/life_cycle.rs:258
↓ 2 callersFunctionnumberAttr
(element: Element, attr: string)
assets/src/live_view.ts:563
↓ 2 callersFunctionp
(e,t,n)
assets-precompiled/axum_live_view.min.js:1
↓ 2 callersFunctionpatchTemplateDiff
( template: { [index: string]: TemplateDynamic }, diff: { [index: string]: TemplateDiffDynamic | null;
assets/src/live_view.ts:676
↓ 2 callersMethodperform_validations
(&mut self, values: &FormValues)
examples/form/src/main.rs:222
↓ 2 callersFunctionpoll_next
( first: Pin<&mut T>, second: Pin<&mut U>, cx: &mut Context<'_>, )
axum-live-view/src/util/stream_ext.rs:120
↓ 2 callersMethodpoll_next
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
axum-live-view/src/util/stream_ext.rs:46
↓ 2 callersMethodrender_to_string
(&self)
axum-live-view/src/life_cycle.rs:294
↓ 2 callersFunctions
(e,t,n)
assets-precompiled/axum_live_view.min.js:1
↓ 2 callersMethodsend
Send a message to the view. This will cause [`LiveView::update`] to be called. # Example This can for example to be used to re-render a view on an
axum-live-view/src/live_view/mod.rs:287
↓ 2 callersFunctionsocketSend
( socket: WebSocket, msg: MessageToView, options: LiveViewOptions, )
assets/src/live_view.ts:113
↓ 2 callersFunctionspawn_view
( mut view: L, view_handle: Option<ViewHandle<L::Message>>, )
axum-live-view/src/life_cycle.rs:163
↓ 2 callersFunctionts_build
(opt: TsBuild)
xtask/src/main.rs:59
↓ 2 callersFunctionts_install
(opt: TsInstall)
xtask/src/main.rs:81
↓ 2 callersMethodupdate
( &self, msg: M, event_data: Option<EventData>, )
axum-live-view/src/life_cycle.rs:304
↓ 2 callersFunctionupdateDomFromState
(socket: WebSocket, state: State, options: LiveViewOptions)
assets/src/live_view.ts:574
↓ 2 callersFunctionv
(e,t)
assets-precompiled/axum_live_view.min.js:1
↓ 1 callersFunctionM
(e,t)
assets-precompiled/axum_live_view.min.js:1
↓ 1 callersFunction_
(e)
assets-precompiled/axum_live_view.min.js:1
↓ 1 callersFunctionaddDocumentEventListeners
( socket: WebSocket, element: Element, options: LiveViewOptions, )
assets/src/live_view.ts:338
↓ 1 callersFunctionbindInitialEvents
(socket: WebSocket, options: LiveViewOptions)
assets/src/live_view.ts:199
↓ 1 callersFunctionbuildHtml
(template: Template)
assets/src/live_view.ts:581
↓ 1 callersFunctioncalculate_hash
(t: &T)
xtask/src/main.rs:147
↓ 1 callersFunctionclear_value
Clear the value of input fields matching a CSS selector. # Example ``` axum_live_view::js_command::clear_value(".search-query"); ```
axum-live-view/src/js_command.rs:131
↓ 1 callersFunctioncodegen
()
xtask/src/main.rs:181
↓ 1 callersFunctioncombine
Combine multiple live views into one. Normally you cannot combine two or more views in the same `html!` template because the message types are differ
axum-live-view/src/live_view/mod.rs:452
↓ 1 callersFunctiondebounce
(f: Fn<In>, delayMs: number)
assets/src/live_view.ts:840
↓ 1 callersMethoddelay
Delay the execution of the command by some duration. The duration will be rounded the nearest millisecond. Uses [`setTimeout`] in the browser. # Ex
axum-live-view/src/js_command.rs:33
↓ 1 callersFunctiondelayOrThrottle
(element: Element, f: Fn<In>)
assets/src/live_view.ts:440
↓ 1 callersFunctiondiff_fixed
(a: &'static [&'static str], b: &'static [&'static str])
axum-live-view/src/html/diff.rs:204
↓ 1 callersFunctioneithers
()
xtask/src/main.rs:184
↓ 1 callersFunctiongzip
(input: &[u8])
xtask/src/main.rs:156
↓ 1 callersFunctionhandleJsCommand
(cmd: JsCommand)
assets/src/live_view.ts:782
↓ 1 callersMethodinto_html
(self)
axum-live-view/src/html/private.rs:67
↓ 1 callersFunctionlive_view_impls
()
xtask/src/main.rs:206
↓ 1 callersMethodmap_with_mut
(self, f: &mut F)
axum-live-view/src/html/mod.rs:86
↓ 1 callersFunctionmerge_size_hints
( (left_low, left_high): (usize, Option<usize>), (right_low, right_hign): (usize, Option<usize>), )
axum-live-view/src/util/stream_ext.rs:152
↓ 1 callersMethodmount
Call [`LiveView::mount`] on the view. If `Ok(())` is returned then you'll get a [`TestViewHandle`] which can be used to send messages to the view. N
axum-live-view/src/test.rs:132
↓ 1 callersFunctionmsgAttr
(element: Element, attr: string)
assets/src/live_view.ts:430
↓ 1 callersMethodnode_to_tokens
(&self, fixed: &mut FixedParts, out: &mut TokenStream)
axum-live-view-macros/src/lib.rs:574
↓ 1 callersFunctiononClose
(options: LiveViewOptions)
assets/src/live_view.ts:169
↓ 1 callersFunctiononMessage
( socket: WebSocket, event: MessageEvent, state: State, options: LiveViewOptions, )
assets/src/live_view.ts:134
↓ 1 callersFunctiononOpen
( socket: WebSocket, options: LiveViewOptions, )
assets/src/live_view.ts:121
↓ 1 callersFunctionparse_many
(input: ParseStream)
axum-live-view-macros/src/lib.rs:84
↓ 1 callersFunctionpatchDom
(socket: WebSocket, element: Element, html: string)
assets/src/live_view.ts:618
↓ 1 callersFunctionpatchTemplateLoop
(template: TemplateLoop, diff: TemplateDiffLoop)
assets/src/live_view.ts:744
↓ 1 callersFunctionr
(e)
assets-precompiled/axum_live_view.min.js:1
↓ 1 callersMethodrender
Re-render the HTML template. This calls [`LiveView::render`] on the view. This method is async because the view is running on a background task.
axum-live-view/src/test.rs:180
↓ 1 callersMethodrender
(&self)
axum-live-view/src/html/render.rs:5
↓ 1 callersFunctionrender_to
( fixed: &'static [&'static str], dynamic: &IndexMap<DynamicFragment<T>>, out: &mut String, )
axum-live-view/src/html/render.rs:15
↓ 1 callersFunctionrun
()
assets/src/live_view.ts:783
↓ 1 callersFunctionrun_live_view
Spawn a live view on a background task and get a handle that can simulate mounting the view.
axum-live-view/src/test.rs:79
↓ 1 callersFunctionrun_view
( mut write: W, read: R, view: L, uri: Uri, headers: HeaderMap, )
axum-live-view/src/life_cycle.rs:67
↓ 1 callersFunctionrun_view_on_socket
(socket: WebSocket, view: L, uri: Uri, headers: HeaderMap)
axum-live-view/src/extract.rs:136
next →1–100 of 252, ranked by callers