pub struct AsyncParentRunManager { /* private fields */ }Expand description
Async Parent Run Manager.
This is the async counterpart to ParentRunManager.
Implementations§
Source§impl AsyncParentRunManager
impl AsyncParentRunManager
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 async parent run manager.
Sourcepub fn get_child(&self, tag: Option<&str>) -> AsyncCallbackManager
pub fn get_child(&self, tag: Option<&str>) -> AsyncCallbackManager
Get a child async callback manager.
Sourcepub fn get_sync(&self) -> ParentRunManager
pub fn get_sync(&self) -> ParentRunManager
Get the sync version.
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 AsyncParentRunManager
impl Clone for AsyncParentRunManager
Source§fn clone(&self) -> AsyncParentRunManager
fn clone(&self) -> AsyncParentRunManager
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 AsyncParentRunManager
impl !RefUnwindSafe for AsyncParentRunManager
impl Send for AsyncParentRunManager
impl Sync for AsyncParentRunManager
impl Unpin for AsyncParentRunManager
impl !UnwindSafe for AsyncParentRunManager
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