pub struct TopologyGroup { /* private fields */ }Expand description
D152 graph-owned release group over ordinary graph-registered nodes.
The group is a label/release handle, not a registry: the graph registry remains the source of truth for describe/find/profile/checkpoint and id retirement.
Implementations§
Source§impl TopologyGroup
impl TopologyGroup
Sourcepub fn is_released(&self) -> bool
pub fn is_released(&self) -> bool
Updates or reads is_released.
Sourcepub fn node<T: 'static, F: Fn(&Ctx) + 'static>(
&self,
deps: Vec<Core>,
f: F,
) -> Node<T>
pub fn node<T: 'static, F: Fn(&Ctx) + 'static>( &self, deps: Vec<Core>, f: F, ) -> Node<T>
Updates or reads node.
Sourcepub fn node_opts<T: 'static, F: Fn(&Ctx) + 'static>(
&self,
deps: Vec<Core>,
f: F,
opts: GraphNodeOpts,
) -> Node<T>
pub fn node_opts<T: 'static, F: Fn(&Ctx) + 'static>( &self, deps: Vec<Core>, f: F, opts: GraphNodeOpts, ) -> Node<T>
Updates or reads node_opts.
Sourcepub fn state_opts<T: 'static>(&self, initial: T, opts: GraphNodeOpts) -> Node<T>
pub fn state_opts<T: 'static>(&self, initial: T, opts: GraphNodeOpts) -> Node<T>
Updates or reads state_opts.
Sourcepub fn state_empty<T: 'static>(&self) -> Node<T>
pub fn state_empty<T: 'static>(&self) -> Node<T>
Updates or reads state_empty.
Sourcepub fn state_empty_opts<T: 'static>(&self, opts: GraphNodeOpts) -> Node<T>
pub fn state_empty_opts<T: 'static>(&self, opts: GraphNodeOpts) -> Node<T>
Updates or reads state_empty_opts.
Sourcepub fn producer<T: 'static, F: Fn(&Ctx) + 'static>(&self, f: F) -> Node<T>
pub fn producer<T: 'static, F: Fn(&Ctx) + 'static>(&self, f: F) -> Node<T>
Updates or reads producer.
Sourcepub fn producer_opts<T: 'static, F: Fn(&Ctx) + 'static>(
&self,
f: F,
opts: GraphNodeOpts,
) -> Node<T>
pub fn producer_opts<T: 'static, F: Fn(&Ctx) + 'static>( &self, f: F, opts: GraphNodeOpts, ) -> Node<T>
Updates or reads producer_opts.
Sourcepub fn derived<T: 'static, F: Fn(&Values<'_>) -> Option<T> + 'static>(
&self,
deps: Vec<Core>,
f: F,
) -> Node<T>
pub fn derived<T: 'static, F: Fn(&Values<'_>) -> Option<T> + 'static>( &self, deps: Vec<Core>, f: F, ) -> Node<T>
Updates or reads derived.
Sourcepub fn derived_opts<T: 'static, F: Fn(&Values<'_>) -> Option<T> + 'static>(
&self,
deps: Vec<Core>,
f: F,
opts: GraphNodeOpts,
) -> Node<T>
pub fn derived_opts<T: 'static, F: Fn(&Values<'_>) -> Option<T> + 'static>( &self, deps: Vec<Core>, f: F, opts: GraphNodeOpts, ) -> Node<T>
Updates or reads derived_opts.
Sourcepub fn effect<F: Fn(&Values<'_>) -> Option<Box<dyn FnOnce()>> + 'static>(
&self,
deps: Vec<Core>,
f: F,
) -> Node<()>
pub fn effect<F: Fn(&Values<'_>) -> Option<Box<dyn FnOnce()>> + 'static>( &self, deps: Vec<Core>, f: F, ) -> Node<()>
Updates or reads effect.
Sourcepub fn effect_opts<F: Fn(&Values<'_>) -> Option<Box<dyn FnOnce()>> + 'static>(
&self,
deps: Vec<Core>,
f: F,
opts: GraphNodeOpts,
) -> Node<()>
pub fn effect_opts<F: Fn(&Values<'_>) -> Option<Box<dyn FnOnce()>> + 'static>( &self, deps: Vec<Core>, f: F, opts: GraphNodeOpts, ) -> Node<()>
Updates or reads effect_opts.
Sourcepub fn init_node<T: 'static>(
&self,
op: Operator<T>,
deps: Vec<Core>,
opts: GraphNodeOpts,
) -> Node<T>
pub fn init_node<T: 'static>( &self, op: Operator<T>, deps: Vec<Core>, opts: GraphNodeOpts, ) -> Node<T>
Updates or reads init_node.
Sourcepub fn release_with_reason(&self, reason: &str)
pub fn release_with_reason(&self, reason: &str)
Updates or reads release_with_reason.
Trait Implementations§
Source§impl Clone for TopologyGroup
impl Clone for TopologyGroup
Source§fn clone(&self) -> TopologyGroup
fn clone(&self) -> TopologyGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TopologyGroup
impl !RefUnwindSafe for TopologyGroup
impl !Send for TopologyGroup
impl !Sync for TopologyGroup
impl Unpin for TopologyGroup
impl UnsafeUnpin for TopologyGroup
impl !UnwindSafe for TopologyGroup
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