pub struct NodeBuilder<J> { /* private fields */ }Expand description
Helper struct for parceling out node dependencies
§Panics
This struct panics on drop if not all dependencies are used, as this results in a node that cannot run.
Implementations§
Source§impl<J> NodeBuilder<J>
impl<J> NodeBuilder<J>
Sourcepub fn get_in_edge(&mut self) -> Edge<J>
pub fn get_in_edge(&mut self) -> Edge<J>
Request a single inbound edge (dependency).
§Panics
This method panics if no more dependency handles are available.
Sourcepub fn try_get_in_edge(&mut self) -> Option<Edge<J>>
pub fn try_get_in_edge(&mut self) -> Option<Edge<J>>
Request a single inbound edge (dependency), returning None if no more
are available.
Sourcepub fn set_dependents(
&mut self,
dependents: Arc<Dependents<J>>,
) -> Result<(), Arc<Dependents<J>>>
pub fn set_dependents( &mut self, dependents: Arc<Dependents<J>>, ) -> Result<(), Arc<Dependents<J>>>
Add a list of dependents to this node.
§Errors
This function returns the input dependent list as an error if the node is no longer available to be accessed safely or if a dependent list has already been assigned to the node.
Trait Implementations§
Source§impl<J: Debug> Debug for NodeBuilder<J>
impl<J: Debug> Debug for NodeBuilder<J>
Source§impl<J> Drop for NodeBuilder<J>
impl<J> Drop for NodeBuilder<J>
Auto Trait Implementations§
impl<J> Freeze for NodeBuilder<J>
impl<J> !RefUnwindSafe for NodeBuilder<J>
impl<J> Send for NodeBuilder<J>where
J: Send,
impl<J> Sync for NodeBuilder<J>where
J: Send,
impl<J> Unpin for NodeBuilder<J>
impl<J> UnsafeUnpin for NodeBuilder<J>
impl<J> !UnwindSafe for NodeBuilder<J>
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