MCPcopy Create free account

hub / github.com/GregoryConrad/rearch-rs / functions

Functions90 in github.com/GregoryConrad/rearch-rs

↓ 30 callersMethodget
Reads the current data of the supplied capsule, initializing it if needed. Internally forms a dependency graph amongst capsules, so feel free to condi
rearch/src/capsule_reader.rs:32
↓ 16 callersMethodread
Performs a *consistent* read on all supplied capsules. Consistency is important here: if you need the current data from a few different capsules, do
rearch/src/lib.rs:177
↓ 16 callersMethodregister
Registers the given side effect.
rearch/src/side_effect_registrar.rs:45
↓ 11 callersMethodnode_or_panic
Gets the requested node or panics if it is not in the graph
rearch/src/txn.rs:116
↓ 8 callersFunctionstate
( initial: T, )
rearch/src/side_effects.rs:16
↓ 6 callersMethodraw
The basic building block for all side effects.
rearch/src/side_effect_registrar.rs:50
↓ 4 callersMethoddata
(self)
rearch-tokio/src/lib.rs:22
↓ 4 callersFunctionmutation
()
rearch-tokio/src/lib.rs:76
↓ 3 callersMethodwith_read_txn
Runs the supplied callback with a `ContainerReadTxn` that allows you to read the current data in the container. You almost never want to use this fun
rearch/src/lib.rs:143
↓ 2 callersMethodbuild_capsule_or_panic
Forcefully builds the capsule with the supplied id. Panics if node is not in the graph
rearch/src/txn.rs:101
↓ 2 callersMethodbuild_single_node
Builds only the requested node. Panics if the node is not in the graph
rearch/src/txn.rs:123
↓ 2 callersMethoddispose_single_node
Forcefully disposes only the requested node, cleaning up the node's direct dependencies. Panics if the node is not in the graph.
rearch/src/txn.rs:138
↓ 2 callersFunctionlazy_state
(init: F)
rearch/src/side_effects.rs:31
↓ 2 callersFunctionvalue
(value: T)
rearch/src/side_effects.rs:50
↓ 2 callersMethodwith_write_txn
Runs the supplied callback with a `ContainerWriteTxn` that allows you to read and populate the current data in the container. You almost never want t
rearch/src/lib.rs:159
↓ 1 callersMethodbuild
(self)
rearch/src/capsule_reader.rs:107
↓ 1 callersMethodbuild_capsule
Triggers a first build or rebuild for the supplied capsule
rearch/src/txn.rs:90
↓ 1 callersMethodcall_mut
(&mut self, args: (A,))
rearch/src/capsule_reader.rs:86
↓ 1 callersMethodcreate_build_order_stack
Creates the start node's dependent subgraph build order, including start, *as a stack*. Thus, proper iteration order is done by popping off of the sta
rearch/src/txn.rs:152
↓ 1 callersFunctionfuture
( )
rearch-tokio/src/lib.rs:46
↓ 1 callersMethodgarbage_collect_diposable_nodes
Helper function that given a `build_order`, garbage collects all idempotent nodes that have no dependents (i.e., they are entirely disposable) and ret
rearch/src/txn.rs:187
↓ 1 callersMethodis_disposable
(&self)
rearch/src/lib.rs:435
↓ 1 callersFunctionis_first_build
()
rearch/src/side_effects.rs:73
↓ 1 callersMethodis_idempotent
(&self)
rearch/src/lib.rs:427
↓ 1 callersFunctionlazy_value
(init: F)
rearch/src/side_effects.rs:60
↓ 1 callersFunctionraw
( initial: T, )
rearch/src/side_effects.rs:5
↓ 1 callersMethodread_or_init
(&mut self, capsule: C)
rearch/src/txn.rs:61
↓ 1 callersMethodrebuild
(&self, id: TypeId, mutation: impl FnOnce(&mut CapsuleManager))
rearch/src/lib.rs:331
↓ 1 callersFunctionreducer
( reducer: Reducer, initial: State, )
rearch/src/side_effects.rs:126
↓ 1 callersFunctionrun_on_change
()
rearch/src/side_effects.rs:106
↓ 1 callersMethodset
(mut self, _capsule: &C, data: C::Data)
rearch/src/capsule_reader.rs:101
↓ 1 callersMethodtry_read
(&self, _capsule: &C)
rearch/src/txn.rs:22
Functiona
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/lib.rs:635
Functionas_listener
()
rearch/src/side_effects.rs:12
Functionasync_persist
( read: Reader, write: Writer, )
rearch-tokio/src/lib.rs:124
Functionb
(CapsuleHandle { mut get, register }: CapsuleHandle)
rearch/src/lib.rs:639
Functionbasic_count
()
rearch/src/lib.rs:454
Functionbig_string_factory
( CapsuleHandle { mut get, .. }: CapsuleHandle, )
rearch/src/bin/main.rs:17
Methodbuild
(&self, handle: CapsuleHandle)
rearch/src/lib.rs:58
Functionc
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/lib.rs:644
Methodcall_once
(self, (effect,): (S,))
rearch/src/side_effect_registrar.rs:77
Methodcall_once
(mut self, args: (A,))
rearch/src/capsule_reader.rs:79
Functioncomplex_dependency_graph
()
rearch/src/lib.rs:629
Functioncount
(_: CapsuleHandle)
rearch/src/lib.rs:455
Functioncount
(_: CapsuleHandle)
rearch/src/bin/main.rs:3
Functioncount_plus_one
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/lib.rs:459
Functioncount_plus_one
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/bin/main.rs:7
Functioncrazy
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/bin/main.rs:11
Functioncreate_todo
( State(container): State<Container>, content: String, )
examples/axum/src/main.rs:150
Functioncreate_todo_capsule
( CapsuleHandle { mut get, .. }: CapsuleHandle, )
examples/axum/src/main.rs:100
Functiond
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/lib.rs:648
Functiondb_capsule
(_: CapsuleHandle)
examples/axum/src/main.rs:47
Functiondelete_todo
( State(container): State<Container>, Path(uuid): Path<Uuid>, )
examples/axum/src/main.rs:169
Functiondelete_todo_capsule
( CapsuleHandle { mut get, .. }: CapsuleHandle, )
examples/axum/src/main.rs:113
Functiondependent
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/lib.rs:489
Functiondependent_gets_updates
()
rearch/src/lib.rs:511
Methoddrop
(&mut self)
rearch/src/lib.rs:253
Methoddrop
(&mut self)
rearch/src/side_effects.rs:119
Methoddrop
(&mut self)
rearch-tokio/src/lib.rs:7
Functione
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/lib.rs:652
Functionf
(CapsuleHandle { mut get, register }: CapsuleHandle)
rearch/src/lib.rs:656
Functionfoo
(bar: &SyncSendCheck<crate::Container>)
rearch/src/lib.rs:449
Methodfrom
(err: redb::Error)
examples/axum/src/main.rs:197
Functiong
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/lib.rs:661
Functiongenerate_tuple_side_effect_impl
(input: TokenStream)
rearch-macros/src/lib.rs:7
Functionh
(_: CapsuleHandle)
rearch/src/lib.rs:665
Methodinto_response
(self)
examples/axum/src/main.rs:185
Functionlazy_reducer
( reducer: Reducer, initial: impl FnOnce() -> State + Send + 'static, )
rearch/src/side_effects.rs:146
Functionlist_todos
(State(container): State<Container>)
examples/axum/src/main.rs:145
Functionlist_todos_capsule
( CapsuleHandle { mut get, .. }: CapsuleHandle, )
examples/axum/src/main.rs:125
Functionmain
()
rearch/src/bin/main.rs:37
Functionmain
()
examples/axum/src/main.rs:15
Functionmultiple_side_effect
()
rearch/src/lib.rs:526
Methodnew
Creates a new `SideEffectRegistrar`. This is public only to enable easier mocking in your code, or for other libraries looking to integrate deeply wi
rearch/src/side_effect_registrar.rs:34
Methodnew
(data: HashMapReadTxn<'a, TypeId, Box<dyn CapsuleData>>)
rearch/src/txn.rs:15
Methodnew
()
rearch/src/lib.rs:133
Methodnew
(id: TypeId, txn: &'scope mut ContainerWriteTxn<'total>)
rearch/src/capsule_reader.rs:22
Functionread_todo
( State(container): State<Container>, Path(uuid): Path<Uuid>, )
examples/axum/src/main.rs:158
Functionread_todo_capsule
( CapsuleHandle { mut get, .. }: CapsuleHandle, )
examples/axum/src/main.rs:88
Functionrebuilder
()
rearch/src/side_effects.rs:87
Functionrun_once
(f: F)
rearch/src/side_effects.rs:94
Functionstate_gets_updates
()
rearch/src/lib.rs:494
Functionstateful
(CapsuleHandle { register, .. }: CapsuleHandle)
rearch/src/lib.rs:484
Functionstateful
(CapsuleHandle { register, .. }: CapsuleHandle)
rearch/src/bin/main.rs:32
Functionstateful_a
(CapsuleHandle { register, .. }: CapsuleHandle)
rearch/src/lib.rs:630
Functionsync_persist
A thin wrapper around the state side effect that enables easy state persistence. You provide a `read` function and a `write` function, and you receiv
rearch/src/side_effects.rs:175
Methodtry_read_raw
Tries a capsule read, but doesn't require an instance of the capsule itself
rearch/src/txn.rs:27
Functionuses_factory
(CapsuleHandle { mut get, .. }: CapsuleHandle)
rearch/src/bin/main.rs:28
Functionwith_read_txn_capsule
( CapsuleHandle { mut get, .. }: CapsuleHandle, )
examples/axum/src/main.rs:58
Functionwith_write_txn_capsule
( CapsuleHandle { mut get, .. }: CapsuleHandle, )
examples/axum/src/main.rs:72