pub struct RunManager { /* private fields */ }Expand description
Sync Run Manager.
Implementations§
Source§impl RunManager
impl RunManager
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 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 RunManager
impl Clone for RunManager
Source§fn clone(&self) -> RunManager
fn clone(&self) -> RunManager
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 RunManager
impl !RefUnwindSafe for RunManager
impl Send for RunManager
impl Sync for RunManager
impl Unpin for RunManager
impl !UnwindSafe for RunManager
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