pub enum GenState {
Continue,
FreeSelf,
FreeSelfMendConnections,
FreeGraph(usize),
FreeGraphMendConnections(usize),
}Expand description
The Gen should return Continue unless it needs to free itself or the Graph it is in.
No promise is made as to when the node or the Graph will be freed so the Node needs to do the right thing
if run again the next block. E.g. a node returning FreeSelfMendConnections is expected to act as a
connection bridge from its non constant inputs to its outputs as if it weren’t there. Only inputs with a
corresponding output should be passed through, e.g. in[0] -> out[0], in[1] -> out[1], in[2..5] go nowhere.
The FreeGraph and FreeGraphMendConnections values also return the relative sample in the current block after which the graph should return 0 or connect its non constant inputs to its outputs.
Variants§
Continue
Continue running
FreeSelf
Free the node containing the Gen
FreeSelfMendConnections
Free the node containing the Gen, bridging its input node(s) to its output node(s).
FreeGraph(usize)
Free the graph containing the node containing the Gen.
FreeGraphMendConnections(usize)
Free the graph containing the node containing the Gen, bridging its input node(s) to its output node(s).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenState
impl RefUnwindSafe for GenState
impl Send for GenState
impl Sync for GenState
impl Unpin for GenState
impl UnwindSafe for GenState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.