[−][src]Struct dasp_graph::BoxedNodeSend
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.
Implementations
impl BoxedNodeSend
[src]
pub fn new<T>(node: T) -> Self where
T: 'static + Node + Send,
[src]
T: 'static + Node + Send,
Create a new BoxedNode
around the given node
.
This is short-hand for BoxedNode::from(Box::new(node))
.
Methods from Deref<Target = Box<dyn Node + Send>>
Trait Implementations
impl Debug for BoxedNodeSend
[src]
impl Deref for BoxedNodeSend
[src]
type Target = Box<dyn Node + Send>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl DerefMut for BoxedNodeSend
[src]
impl<T> From<Box<T>> for BoxedNodeSend where
T: 'static + Node + Send,
[src]
T: 'static + Node + Send,
impl Into<Box<dyn Node + 'static + Send>> for BoxedNodeSend
[src]
impl Node for BoxedNodeSend
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BoxedNodeSend
impl Send for BoxedNodeSend
impl !Sync for BoxedNodeSend
impl Unpin for BoxedNodeSend
impl !UnwindSafe for BoxedNodeSend
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
U: FromSample<T>,
fn to_sample_(self) -> U
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,