pub struct BaseRunManager {
pub run_id: Uuid,
pub handlers: Vec<Arc<dyn BaseCallbackHandler>>,
pub inheritable_handlers: Vec<Arc<dyn BaseCallbackHandler>>,
pub parent_run_id: Option<Uuid>,
pub tags: Vec<String>,
pub inheritable_tags: Vec<String>,
pub metadata: HashMap<String, Value>,
pub inheritable_metadata: HashMap<String, Value>,
}Expand description
Base class for run manager (a bound callback manager).
Fields§
§run_id: UuidThe ID of the run.
handlers: Vec<Arc<dyn BaseCallbackHandler>>The list of handlers.
inheritable_handlers: Vec<Arc<dyn BaseCallbackHandler>>The list of inheritable handlers.
parent_run_id: Option<Uuid>The ID of the parent run.
The list of tags.
The list of inheritable tags.
metadata: HashMap<String, Value>The metadata.
inheritable_metadata: HashMap<String, Value>The inheritable metadata.
Implementations§
Source§impl BaseRunManager
impl BaseRunManager
Sourcepub fn new(
run_id: Uuid,
handlers: Vec<Arc<dyn BaseCallbackHandler>>,
inheritable_handlers: Vec<Arc<dyn BaseCallbackHandler>>,
parent_run_id: Option<Uuid>,
tags: Option<Vec<String>>,
inheritable_tags: Option<Vec<String>>,
metadata: Option<HashMap<String, Value>>,
inheritable_metadata: Option<HashMap<String, Value>>,
) -> Self
pub fn new( run_id: Uuid, handlers: Vec<Arc<dyn BaseCallbackHandler>>, inheritable_handlers: Vec<Arc<dyn BaseCallbackHandler>>, parent_run_id: Option<Uuid>, tags: Option<Vec<String>>, inheritable_tags: Option<Vec<String>>, metadata: Option<HashMap<String, Value>>, inheritable_metadata: Option<HashMap<String, Value>>, ) -> Self
Create a new base run manager.
Sourcepub fn get_noop_manager() -> Self
pub fn get_noop_manager() -> Self
Return a manager that doesn’t perform any operations.
Trait Implementations§
Source§impl Clone for BaseRunManager
impl Clone for BaseRunManager
Source§fn clone(&self) -> BaseRunManager
fn clone(&self) -> BaseRunManager
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BaseRunManager
impl !RefUnwindSafe for BaseRunManager
impl Send for BaseRunManager
impl Sync for BaseRunManager
impl Unpin for BaseRunManager
impl !UnwindSafe for BaseRunManager
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