pub struct NodeHandle(/* private fields */);
Expand description
Cheap handle to a registered FlowNode
Implementations§
Source§impl NodeHandle
impl NodeHandle
pub fn from_type<N: FlowNodeBase + 'static>() -> NodeHandle
pub fn from_modpath(modpath: &str) -> NodeHandle
pub fn try_from_modpath(modpath: &str) -> Option<NodeHandle>
pub fn new_erased_node(&self) -> Box<dyn FlowNodeBase<Request = Box<[u8]>>>
pub fn modpath(&self) -> &'static str
pub fn try_modpath(&self) -> Option<&'static str>
Sourcepub fn dummy() -> NodeHandle
pub fn dummy() -> NodeHandle
Return a dummy NodeHandle, which will panic if new_erased_node
is ever
called on it.
Trait Implementations§
Source§impl Clone for NodeHandle
impl Clone for NodeHandle
Source§fn clone(&self) -> NodeHandle
fn clone(&self) -> NodeHandle
Returns a copy 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 moreSource§impl Debug for NodeHandle
impl Debug for NodeHandle
Source§impl Hash for NodeHandle
impl Hash for NodeHandle
Source§impl Ord for NodeHandle
impl Ord for NodeHandle
Source§impl PartialEq for NodeHandle
impl PartialEq for NodeHandle
Source§impl PartialOrd for NodeHandle
impl PartialOrd for NodeHandle
impl Copy for NodeHandle
impl Eq for NodeHandle
impl StructuralPartialEq for NodeHandle
Auto Trait Implementations§
impl Freeze for NodeHandle
impl RefUnwindSafe for NodeHandle
impl Send for NodeHandle
impl Sync for NodeHandle
impl Unpin for NodeHandle
impl UnwindSafe for NodeHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.