pub struct ScenarioNode { /* private fields */ }Implementations§
Source§impl ScenarioNode
impl ScenarioNode
pub fn id(&self) -> &NodeId
pub fn behavior(&self) -> &NodeBehavior
pub fn label(&self) -> Option<&str>
pub fn initial_value(&self) -> f64
pub fn metadata(&self) -> &BTreeMap<String, String>
pub fn source(id: NodeId) -> Self
pub fn pool(id: NodeId, c: PoolConfig) -> Self
pub fn drain(id: NodeId, c: DrainConfig) -> Self
pub fn sorting_gate(id: NodeId, c: SortingGateConfig) -> Self
pub fn trigger_gate(id: NodeId, c: TriggerGateConfig) -> Self
pub fn mixed_gate(id: NodeId, c: MixedGateConfig) -> Self
pub fn converter(id: NodeId, c: ConverterConfig) -> Self
pub fn trader(id: NodeId, c: TraderConfig) -> Self
pub fn register(id: NodeId, c: RegisterConfig) -> Self
pub fn delay(id: NodeId, c: DelayConfig) -> Self
pub fn queue(id: NodeId, c: QueueConfig) -> Self
pub fn process(id: NodeId) -> Self
pub fn sink(id: NodeId) -> Self
pub fn gate(id: NodeId) -> Self
pub fn custom(id: NodeId, v: impl Into<String>) -> Self
pub fn with_label(self, v: impl Into<String>) -> Self
pub fn with_initial_value(self, v: f64) -> Self
pub fn with_tag(self, v: impl Into<String>) -> Self
pub fn with_metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ScenarioNode
impl Clone for ScenarioNode
Source§fn clone(&self) -> ScenarioNode
fn clone(&self) -> ScenarioNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScenarioNode
impl Debug for ScenarioNode
Source§impl From<ScenarioNode> for NodeSpec
impl From<ScenarioNode> for NodeSpec
Source§fn from(node: ScenarioNode) -> Self
fn from(node: ScenarioNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScenarioNode
impl PartialEq for ScenarioNode
impl StructuralPartialEq for ScenarioNode
Auto Trait Implementations§
impl Freeze for ScenarioNode
impl RefUnwindSafe for ScenarioNode
impl Send for ScenarioNode
impl Sync for ScenarioNode
impl Unpin for ScenarioNode
impl UnsafeUnpin for ScenarioNode
impl UnwindSafe for ScenarioNode
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