pub struct NodeState<T, const BUF_SIZE: usize>where
T: Transcendental,{
pub sample_pos: u64,
pub blocks_processed: u64,
pub sample_rate: f32,
pub active: bool,
pub phase: T,
}Expand description
State of a node during processing State of a node during processing
Fields§
§sample_pos: u64Current sample position
blocks_processed: u64Number of processed blocks
sample_rate: f32Sample rate
active: boolWhether the node is active
phase: TInternal phase (for generators)
Implementations§
Source§impl<T, const BUF_SIZE: usize> NodeState<T, BUF_SIZE>where
T: Transcendental,
impl<T, const BUF_SIZE: usize> NodeState<T, BUF_SIZE>where
T: Transcendental,
Trait Implementations§
Auto Trait Implementations§
impl<T, const BUF_SIZE: usize> Freeze for NodeState<T, BUF_SIZE>where
T: Freeze,
impl<T, const BUF_SIZE: usize> RefUnwindSafe for NodeState<T, BUF_SIZE>where
T: RefUnwindSafe,
impl<T, const BUF_SIZE: usize> Send for NodeState<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Sync for NodeState<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Unpin for NodeState<T, BUF_SIZE>where
T: Unpin,
impl<T, const BUF_SIZE: usize> UnsafeUnpin for NodeState<T, BUF_SIZE>where
T: UnsafeUnpin,
impl<T, const BUF_SIZE: usize> UnwindSafe for NodeState<T, BUF_SIZE>where
T: UnwindSafe,
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