#[non_exhaustive]pub enum ScriptStep {
Drop {
block: u64,
packet: u32,
},
DropBlock {
block: u64,
},
Duplicate {
block: u64,
packet: u32,
},
Delay {
block: u64,
packet: u32,
by: usize,
},
TrailerBeforeLastPayload {
block: u64,
},
RepeatLeader {
block: u64,
after: u32,
},
Interleave {
block: u64,
},
}Expand description
One deterministic change to the datagrams of a block.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Drop
Never send packet packet of block.
DropBlock
Send nothing of block.
Duplicate
Send packet packet of block twice in a row.
Delay
Send packet packet of block after by more of the block’s datagrams.
TrailerBeforeLastPayload
Send the trailer of block just before its last payload packet.
RepeatLeader
Send the leader of block again after its payload packet after.
Interleave
Alternate the datagrams of block with those of the next block.
Only the live sender acts on this; PacketScript::apply sees one
block at a time. Tests driving datagrams themselves call interleave.
Trait Implementations§
Source§impl Clone for ScriptStep
impl Clone for ScriptStep
impl Copy for ScriptStep
Source§impl Debug for ScriptStep
impl Debug for ScriptStep
impl Eq for ScriptStep
Source§impl PartialEq for ScriptStep
impl PartialEq for ScriptStep
impl StructuralPartialEq for ScriptStep
Auto Trait Implementations§
impl Freeze for ScriptStep
impl RefUnwindSafe for ScriptStep
impl Send for ScriptStep
impl Sync for ScriptStep
impl Unpin for ScriptStep
impl UnsafeUnpin for ScriptStep
impl UnwindSafe for ScriptStep
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