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:
commit
6b7b4896bb
|
@ -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
|
/// 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.
|
/// keeping track of, don't give it out for any future requests.
|
||||||
pub fn retire_circ(&self, circ_id: &UniqId) {
|
pub fn retire_circ(&self, circ_id: &UniqId) {
|
||||||
|
|
Loading…
Reference in New Issue