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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
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