pub struct GraphHandle {
pub nodes: *mut u8,
pub len: usize,
pub source_idx: usize,
pub sample_rate: f32,
pub queue: *const MpscQueue<SetParameter>,
}Expand description
Handle passed to an ActiveNode implementation.
The nodes pointer points to the graph’s node array cast to ().
Concrete implementations cast back to [NodeVariant<f32, B>].
queue points to the shared command queue that the audio callback
must drain before each processing cycle.
Fields§
§nodes: *mut u8Raw pointer to the graph’s node array (cast to u8).
len: usizeNumber of nodes in the graph.
source_idx: usizeIndex of the source node in the graph.
sample_rate: f32Sample rate of the audio stream.
queue: *const MpscQueue<SetParameter>Command queue (control → audio thread).
Auto Trait Implementations§
impl Freeze for GraphHandle
impl RefUnwindSafe for GraphHandle
impl !Send for GraphHandle
impl !Sync for GraphHandle
impl Unpin for GraphHandle
impl UnsafeUnpin for GraphHandle
impl UnwindSafe for GraphHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more