Struct glicol_synth::BoxedNodeSend
source · pub struct BoxedNodeSend<const N: usize>(pub Box<dyn Node<N> + Send>);
Expand description
A wrapper around a Box<dyn Node>
.
Provides the necessary Sized
implementation to allow for compatibility with the graph process
function.
Useful when the ability to send nodes from one thread to another is required. E.g. this is common when initialising nodes or the audio graph itself on one thread before sending them to the audio thread.
Tuple Fields§
§0: Box<dyn Node<N> + Send>
Implementations§
Trait Implementations§
source§impl<const N: usize> Debug for BoxedNodeSend<N>
impl<const N: usize> Debug for BoxedNodeSend<N>
source§impl<const N: usize> Deref for BoxedNodeSend<N>
impl<const N: usize> Deref for BoxedNodeSend<N>
source§impl<const N: usize> DerefMut for BoxedNodeSend<N>
impl<const N: usize> DerefMut for BoxedNodeSend<N>
Auto Trait Implementations§
impl<const N: usize> !RefUnwindSafe for BoxedNodeSend<N>
impl<const N: usize> Send for BoxedNodeSend<N>
impl<const N: usize> !Sync for BoxedNodeSend<N>
impl<const N: usize> Unpin for BoxedNodeSend<N>
impl<const N: usize> !UnwindSafe for BoxedNodeSend<N>
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