pub trait IoNode<T: Transcendental, const BUF_SIZE: usize>: Node<T, BUF_SIZE> {
// Required method
fn resolve_backend(&mut self, backend: Box<dyn IoBackend<T>>);
}Expand description
A node that owns an I/O backend.
Implemented by nodes that read from or write to a hardware device
(Input, Output, LofiInput). The backend is injected during graph
assembly via resolve_backend.
Required Methods§
Sourcefn resolve_backend(&mut self, backend: Box<dyn IoBackend<T>>)
fn resolve_backend(&mut self, backend: Box<dyn IoBackend<T>>)
Take ownership of an I/O backend.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".