pub struct DistributedReplayBuilder { /* private fields */ }Expand description
Builder for a validated distributed replay plan.
Implementations§
Source§impl DistributedReplayBuilder
impl DistributedReplayBuilder
Sourcepub fn new(multi_config_path: impl AsRef<Path>) -> CuResult<Self>
pub fn new(multi_config_path: impl AsRef<Path>) -> CuResult<Self>
Load a strict multi-Copper config and start building a distributed replay plan.
Sourcepub fn with_catalog(self, catalog: DistributedReplayCatalog) -> Self
pub fn with_catalog(self, catalog: DistributedReplayCatalog) -> Self
Replace the discovered catalog explicitly.
Sourcepub fn discover_logs<I, P>(self, inputs: I) -> CuResult<Self>
pub fn discover_logs<I, P>(self, inputs: I) -> CuResult<Self>
Discover logs from files and/or directories.
Directories are walked recursively by DistributedReplayCatalog.
Sourcepub fn discover_logs_under(self, root: impl AsRef<Path>) -> CuResult<Self>
pub fn discover_logs_under(self, root: impl AsRef<Path>) -> CuResult<Self>
Convenience wrapper for recursive discovery under one root directory.
Sourcepub fn instances<I>(self, instances: I) -> Selfwhere
I: IntoIterator<Item = u32>,
pub fn instances<I>(self, instances: I) -> Selfwhere
I: IntoIterator<Item = u32>,
Restrict plan construction to a subset of instance ids.
Sourcepub fn register<App>(self, subsystem_id: &str) -> CuResult<Self>where
App: CuDistributedReplayApplication<NoopSectionStorage, NoopLogger> + CuDistributedReplayApplication<MmapSectionStorage, UnifiedLoggerWrite> + 'static,
pub fn register<App>(self, subsystem_id: &str) -> CuResult<Self>where
App: CuDistributedReplayApplication<NoopSectionStorage, NoopLogger> + CuDistributedReplayApplication<MmapSectionStorage, UnifiedLoggerWrite> + 'static,
Register the generated app type expected for one subsystem.
Sourcepub fn build(self) -> CuResult<DistributedReplayPlan>
pub fn build(self) -> CuResult<DistributedReplayPlan>
Validate discovery + registrations and prepare a typed replay plan.
Trait Implementations§
Source§impl Clone for DistributedReplayBuilder
impl Clone for DistributedReplayBuilder
Source§fn clone(&self) -> DistributedReplayBuilder
fn clone(&self) -> DistributedReplayBuilder
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 DistributedReplayBuilder
impl RefUnwindSafe for DistributedReplayBuilder
impl Send for DistributedReplayBuilder
impl Sync for DistributedReplayBuilder
impl Unpin for DistributedReplayBuilder
impl UnsafeUnpin for DistributedReplayBuilder
impl UnwindSafe for DistributedReplayBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more