pub struct ParentRunManager { /* private fields */ }Expand description
Sync Parent Run Manager.
Implementations§
Source§impl ParentRunManager
impl ParentRunManager
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 parent run manager.
Sourcepub fn get_child(&self, tag: Option<&str>) -> CallbackManager
pub fn get_child(&self, tag: Option<&str>) -> CallbackManager
Get a child callback manager.
Sourcepub fn parent_run_id(&self) -> Option<Uuid>
pub fn parent_run_id(&self) -> Option<Uuid>
Get the parent run ID.
Sourcepub fn handlers(&self) -> &[Arc<dyn BaseCallbackHandler>]
pub fn handlers(&self) -> &[Arc<dyn BaseCallbackHandler>]
Get the handlers.
Get the tags.
Sourcepub fn get_noop_manager() -> Self
pub fn get_noop_manager() -> Self
Return a noop manager.
Trait Implementations§
Source§impl Clone for ParentRunManager
impl Clone for ParentRunManager
Source§fn clone(&self) -> ParentRunManager
fn clone(&self) -> ParentRunManager
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 ParentRunManager
impl !RefUnwindSafe for ParentRunManager
impl Send for ParentRunManager
impl Sync for ParentRunManager
impl Unpin for ParentRunManager
impl !UnwindSafe for ParentRunManager
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