teo_runtime/pipeline/item/
item_impl.rs1use std::sync::Arc;
2use crate::pipeline::item::Call;
3
4#[repr(transparent)]
5#[derive(Clone)]
6pub struct ItemImpl {
7 pub item_call: Arc<dyn Call>,
8}
9
10impl ItemImpl {
11
12 pub fn new<F>(f: F) -> Self where F: Call + 'static {
13 Self {
14 item_call: Arc::new(f),
15 }
16 }
17}