MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / custom_state

Method custom_state

crates/firewheel-core/src/node.rs:156–159  ·  view source on GitHub ↗

Custom `!Send` state that can be stored in the Firewheel context and accessed by the user. The user accesses this state via `FirewheelCtx::node_state` and `FirewheelCtx::node_state_mut`.

(mut self, custom_state: T)

Source from the content-addressed store, hash-verified

154 /// The user accesses this state via `FirewheelCtx::node_state` and
155 /// `FirewheelCtx::node_state_mut`.
156 pub fn custom_state<T: 'static>(mut self, custom_state: T) -> Self {
157 self.custom_state = Some(Box::new(custom_state));
158 self
159 }
160
161 /// Set the latency of this node in frames (samples in a single channel of audio).
162 ///

Callers 6

infoMethod · 0.80
infoMethod · 0.80
infoMethod · 0.80
infoMethod · 0.80
infoMethod · 0.80
infoMethod · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected