pub struct AsyncNode { /* private fields */ }Implementations§
Source§impl AsyncNode
impl AsyncNode
pub fn new<F>(name: impl Into<String>, func: F) -> Self
pub fn add_successor( &mut self, action: impl Into<String>, node: AsyncNode, ) -> &mut Self
pub fn next(&mut self, node: AsyncNode) -> &mut Self
pub fn set_params(&mut self, params: Params)
pub fn get_params(&self) -> &Params
pub fn get_successor(&self, action: &str) -> Option<&AsyncNode>
pub fn has_successors(&self) -> bool
pub async fn run(&self, shared: &mut (dyn Any + Send)) -> Result<()>
pub async fn run_recursive(&self, shared: &mut (dyn Any + Send)) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncNode
impl !UnwindSafe for AsyncNode
impl Freeze for AsyncNode
impl Send for AsyncNode
impl Sync for AsyncNode
impl Unpin for AsyncNode
impl UnsafeUnpin for AsyncNode
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