pub struct MapFilterStream<IN, OUT: Element> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<IN, OUT: Element> MutableNode for MapFilterStream<IN, OUT>
impl<IN, OUT: Element> MutableNode for MapFilterStream<IN, OUT>
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 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 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 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<IN, OUT: Element> StreamPeekRef<OUT> for MapFilterStream<IN, OUT>
impl<IN, OUT: Element> StreamPeekRef<OUT> for MapFilterStream<IN, OUT>
Auto Trait Implementations§
impl<IN, OUT> Freeze for MapFilterStream<IN, OUT>where
OUT: Freeze,
impl<IN, OUT> !RefUnwindSafe for MapFilterStream<IN, OUT>
impl<IN, OUT> !Send for MapFilterStream<IN, OUT>
impl<IN, OUT> !Sync for MapFilterStream<IN, OUT>
impl<IN, OUT> Unpin for MapFilterStream<IN, OUT>where
OUT: Unpin,
impl<IN, OUT> UnsafeUnpin for MapFilterStream<IN, OUT>where
OUT: UnsafeUnpin,
impl<IN, OUT> !UnwindSafe for MapFilterStream<IN, OUT>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more