pub enum Scenario {
SpeakerUpdate(i32),
NodeFailure(bool),
Migration(bool),
ServerLeave(bool),
SwitchCandidateProtocol(i32),
SubscriberBandwidth(i64),
DisconnectSignalOnResume(bool),
DisconnectSignalOnResumeNoMessages(bool),
LeaveRequestFullReconnect(bool),
}
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
DisconnectSignalOnResume(bool)
disconnect signal on resume
DisconnectSignalOnResumeNoMessages(bool)
disconnect signal on resume before sending any messages from server
LeaveRequestFullReconnect(bool)
full reconnect leave request
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§
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl Freeze for Scenario
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