pub struct AsyncRunManager { /* private fields */ }Expand description
Async Run Manager.
This is the async counterpart to RunManager.
Implementations§
Source§impl AsyncRunManager
impl AsyncRunManager
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 run manager.
Sourcepub fn get_sync(&self) -> RunManager
pub fn get_sync(&self) -> RunManager
Get the sync version of this run 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 AsyncRunManager
impl Clone for AsyncRunManager
Source§fn clone(&self) -> AsyncRunManager
fn clone(&self) -> AsyncRunManager
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 AsyncRunManager
impl !RefUnwindSafe for AsyncRunManager
impl Send for AsyncRunManager
impl Sync for AsyncRunManager
impl Unpin for AsyncRunManager
impl !UnwindSafe for AsyncRunManager
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