pub struct ExpensiveComputeNode {
pub id: String,
pub work_ms: u64,
}Expand description
A simple node that simulates an expensive computation by sleeping.
Fields§
§id: String§work_ms: u64Implementations§
Trait Implementations§
Source§impl Node for ExpensiveComputeNode
impl Node for ExpensiveComputeNode
Auto Trait Implementations§
impl Freeze for ExpensiveComputeNode
impl RefUnwindSafe for ExpensiveComputeNode
impl Send for ExpensiveComputeNode
impl Sync for ExpensiveComputeNode
impl Unpin for ExpensiveComputeNode
impl UnwindSafe for ExpensiveComputeNode
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