pub struct GraphNode { /* private fields */ }Expand description
A graph-layer erased node handle returned by Graph::find.
This is intentionally not Node<AnyValue>: typed Node<T>::cache() downcasts to T,
while an erased cache should expose the raw AnyValue payload.
Implementations§
Source§impl GraphNode
impl GraphNode
Sourcepub fn version(&self) -> Option<NodeVersion>
pub fn version(&self) -> Option<NodeVersion>
Updates or reads version.
Sourcepub fn subscribe(
&self,
sink: impl Fn(&Message<AnyValue>) + 'static,
) -> Box<dyn FnOnce()>
pub fn subscribe( &self, sink: impl Fn(&Message<AnyValue>) + 'static, ) -> Box<dyn FnOnce()>
Updates or reads subscribe.
Sourcepub fn down(&self, msgs: Vec<Message<AnyValue>>)
pub fn down(&self, msgs: Vec<Message<AnyValue>>)
Emit a raw erased wave at this graph-registered node boundary.
This mirrors Node::down for nodes recovered through Graph::find.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphNode
impl !RefUnwindSafe for GraphNode
impl !Send for GraphNode
impl !Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl !UnwindSafe for GraphNode
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