mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-03-31 16:23:08 +00:00
Hide runtime construction helpers from docs
This commit is contained in:
parent
7e0cdb54f8
commit
d2665bdb71
@ -24,6 +24,7 @@ pub struct RunContext<E: Application> {
|
|||||||
impl<E: Application> RunContext<E> {
|
impl<E: Application> RunContext<E> {
|
||||||
/// Builds a run context from prepared deployment/runtime artifacts.
|
/// Builds a run context from prepared deployment/runtime artifacts.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[doc(hidden)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
descriptors: E::Deployment,
|
descriptors: E::Deployment,
|
||||||
node_clients: NodeClients<E>,
|
node_clients: NodeClients<E>,
|
||||||
@ -48,6 +49,7 @@ impl<E: Application> RunContext<E> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[doc(hidden)]
|
||||||
pub fn with_cluster_wait(mut self, cluster_wait: Arc<dyn ClusterWaitHandle<E>>) -> Self {
|
pub fn with_cluster_wait(mut self, cluster_wait: Arc<dyn ClusterWaitHandle<E>>) -> Self {
|
||||||
self.cluster_wait = Some(cluster_wait);
|
self.cluster_wait = Some(cluster_wait);
|
||||||
self
|
self
|
||||||
@ -137,6 +139,7 @@ impl<E: Application> Drop for RunHandle<E> {
|
|||||||
impl<E: Application> RunHandle<E> {
|
impl<E: Application> RunHandle<E> {
|
||||||
#[must_use]
|
#[must_use]
|
||||||
/// Build a handle from owned context and optional cleanup guard.
|
/// Build a handle from owned context and optional cleanup guard.
|
||||||
|
#[doc(hidden)]
|
||||||
pub fn new(context: RunContext<E>, cleanup_guard: Option<Box<dyn CleanupGuard>>) -> Self {
|
pub fn new(context: RunContext<E>, cleanup_guard: Option<Box<dyn CleanupGuard>>) -> Self {
|
||||||
Self {
|
Self {
|
||||||
run_context: Arc::new(context),
|
run_context: Arc::new(context),
|
||||||
|
|||||||
@ -36,6 +36,7 @@ impl<E: Application> Drop for Runner<E> {
|
|||||||
impl<E: Application> Runner<E> {
|
impl<E: Application> Runner<E> {
|
||||||
/// Construct a runner from the run context and optional cleanup guard.
|
/// Construct a runner from the run context and optional cleanup guard.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[doc(hidden)]
|
||||||
pub fn new(context: RunContext<E>, cleanup_guard: Option<Box<dyn CleanupGuard>>) -> Self {
|
pub fn new(context: RunContext<E>, cleanup_guard: Option<Box<dyn CleanupGuard>>) -> Self {
|
||||||
Self {
|
Self {
|
||||||
context: Arc::new(context),
|
context: Arc::new(context),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user