Merge branch 'expose-builder' into 'main'

CircMgr: Add an accessor for the CircuitBuilder.

See merge request tpo/core/arti!738
This commit is contained in:
Ian Jackson 2022-09-22 13:28:04 +00:00
commit 6b7b4896bb
1 changed files with 8 additions and 0 deletions

View File

@ -498,6 +498,14 @@ impl<R: Runtime> CircMgr<R> {
}
}
/// Return a reference to the associated CircuitBuilder that this CircMgr
/// will use to create its circuits.
#[cfg_attr(docsrs, doc(cfg(feature = "experimental-api")))]
#[cfg(feature = "experimental-api")]
pub fn builder(&self) -> &build::CircuitBuilder<R> {
self.mgr.peek_builder()
}
/// If `circ_id` is the unique identifier for a circuit that we're
/// keeping track of, don't give it out for any future requests.
pub fn retire_circ(&self, circ_id: &UniqId) {