pub struct DistributedReplayPlan {
pub multi_config_path: PathBuf,
pub multi_config: MultiCopperConfig,
pub catalog: DistributedReplayCatalog,
pub selected_instances: Vec<u32>,
pub mission: Option<String>,
pub registrations: Vec<DistributedReplayAppRegistration>,
pub assignments: Vec<DistributedReplayAssignment>,
}Expand description
Validated replay plan produced by DistributedReplayBuilder.
Fields§
§multi_config_path: PathBuf§multi_config: MultiCopperConfig§catalog: DistributedReplayCatalog§selected_instances: Vec<u32>§mission: Option<String>§registrations: Vec<DistributedReplayAppRegistration>§assignments: Vec<DistributedReplayAssignment>Implementations§
Source§impl DistributedReplayPlan
impl DistributedReplayPlan
pub fn builder( multi_config_path: impl AsRef<Path>, ) -> CuResult<DistributedReplayBuilder>
pub fn assignment( &self, instance_id: u32, subsystem_id: &str, ) -> Option<&DistributedReplayAssignment>
Sourcepub fn start(self) -> CuResult<DistributedReplayEngine>
pub fn start(self) -> CuResult<DistributedReplayEngine>
Build a causal distributed replay engine from this validated plan.
Sourcepub fn start_recording_logs_under(
self,
output_root: impl AsRef<Path>,
) -> CuResult<DistributedReplayEngine>
pub fn start_recording_logs_under( self, output_root: impl AsRef<Path>, ) -> CuResult<DistributedReplayEngine>
Build a causal distributed replay engine and persist replayed logs under output_root.
Trait Implementations§
Source§impl Clone for DistributedReplayPlan
impl Clone for DistributedReplayPlan
Source§fn clone(&self) -> DistributedReplayPlan
fn clone(&self) -> DistributedReplayPlan
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 DistributedReplayPlan
impl RefUnwindSafe for DistributedReplayPlan
impl Send for DistributedReplayPlan
impl Sync for DistributedReplayPlan
impl Unpin for DistributedReplayPlan
impl UnsafeUnpin for DistributedReplayPlan
impl UnwindSafe for DistributedReplayPlan
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