pub struct BoxedNodeSend(pub Box<dyn Node + 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 + Send>Implementations§
Trait Implementations§
Source§impl Debug for BoxedNodeSend
impl Debug for BoxedNodeSend
Source§impl Deref for BoxedNodeSend
impl Deref for BoxedNodeSend
Source§impl DerefMut for BoxedNodeSend
impl DerefMut for BoxedNodeSend
Source§impl<T> From<Box<T>> for BoxedNodeSend
impl<T> From<Box<T>> for BoxedNodeSend
Auto Trait Implementations§
impl Freeze for BoxedNodeSend
impl !RefUnwindSafe for BoxedNodeSend
impl Send for BoxedNodeSend
impl !Sync for BoxedNodeSend
impl Unpin for BoxedNodeSend
impl UnsafeUnpin for BoxedNodeSend
impl !UnwindSafe for BoxedNodeSend
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