pub enum Scenario {
SpeakerUpdate(i32),
NodeFailure(bool),
Migration(bool),
ServerLeave(bool),
SwitchCandidateProtocol(i32),
SubscriberBandwidth(i64),
}Variants§
SpeakerUpdate(i32)
simulate N seconds of speaker activity
NodeFailure(bool)
simulate local node failure
Migration(bool)
simulate migration
ServerLeave(bool)
server to send leave
SwitchCandidateProtocol(i32)
switch candidate protocol to tcp
SubscriberBandwidth(i64)
maximum bandwidth for subscribers, in bps when zero, clears artificial bandwidth limit
Implementations§
source§impl Scenario
impl Scenario
sourcepub fn merge<B>(
field: &mut Option<Scenario>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>( field: &mut Option<Scenario>, tag: u32, wire_type: WireType, buf: &mut B, ctx: DecodeContext ) -> Result<(), DecodeError>where B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq<Scenario> for Scenario
impl PartialEq<Scenario> for Scenario
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnwindSafe for Scenario
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