pub struct DeterministicExecutor {
pub closure_bytes: u64,
pub default_bandwidth: u64,
pub schedule: FailureSchedule,
/* private fields */
}Expand description
Deterministic round executor for the cascade primitive.
Tracks the current cascade round internally — the executor
increments its round counter every dispatch() call, which lets
the FailureSchedule inject failures keyed to specific rounds.
Fields§
§closure_bytes: u64§default_bandwidth: u64§schedule: FailureScheduleImplementations§
Source§impl DeterministicExecutor
impl DeterministicExecutor
pub fn new(closure_bytes: u64, schedule: FailureSchedule) -> Self
pub fn with_default_bandwidth(self, bw: u64) -> Self
Trait Implementations§
Source§impl RoundExecutor for DeterministicExecutor
impl RoundExecutor for DeterministicExecutor
fn dispatch( &self, _nodes: &[CascadeNode], edges: &[(NodeId, NodeId)], net: &NetworkProfile, ) -> HashMap<(NodeId, NodeId), Result<Duration, CascadeError>>
Auto Trait Implementations§
impl !Freeze for DeterministicExecutor
impl RefUnwindSafe for DeterministicExecutor
impl Send for DeterministicExecutor
impl Sync for DeterministicExecutor
impl Unpin for DeterministicExecutor
impl UnsafeUnpin for DeterministicExecutor
impl UnwindSafe for DeterministicExecutor
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