pub struct IteratorStream<T: Element> { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl<T: Element> MutableNode for IteratorStream<T>
impl<T: Element> MutableNode for IteratorStream<T>
Source§fn cycle(&mut self, state: &mut GraphState) -> Result<bool>
fn cycle(&mut self, state: &mut GraphState) -> Result<bool>
Called by the graph when it determines that this node
is required to be cycled.
Returns Ok(true) if the node’s state changed, Ok(false) otherwise.
Source§fn start(&mut self, state: &mut GraphState) -> Result<()>
fn start(&mut self, state: &mut GraphState) -> Result<()>
Called by the graph after wiring and before the first cycle.
Can be used to request an initial callback.
Source§fn upstreams(&self) -> UpStreams
fn upstreams(&self) -> UpStreams
Called by the graph at wiring time to discover upstream dependencies.
Active upstreams trigger this node when they tick; passive are read-only.
Defaults to
UpStreams::none() (source node). Use #[node(active = [...])]
to generate this automatically, or override manually for complex cases.Source§fn setup(&mut self, state: &mut GraphState) -> Result<()>
fn setup(&mut self, state: &mut GraphState) -> Result<()>
called by the graph after wiring and before start
Source§fn stop(&mut self, state: &mut GraphState) -> Result<()>
fn stop(&mut self, state: &mut GraphState) -> Result<()>
Called by the graph after the last cycle. Can be used to clean up resources.
fn teardown(&mut self, state: &mut GraphState) -> Result<()>
fn type_name(&self) -> String
Source§impl<T: Element> StreamPeekRef<TinyVec<[T; 1]>> for IteratorStream<T>
impl<T: Element> StreamPeekRef<TinyVec<[T; 1]>> for IteratorStream<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for IteratorStream<T>
impl<T> !Send for IteratorStream<T>
impl<T> !Sync for IteratorStream<T>
impl<T> !UnwindSafe for IteratorStream<T>
impl<T> Freeze for IteratorStream<T>where
T: Freeze,
impl<T> Unpin for IteratorStream<T>where
T: Unpin,
impl<T> UnsafeUnpin for IteratorStream<T>where
T: UnsafeUnpin,
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