pub enum Connection {
Show 16 variants Sleep { amount: Duration, }, OpenBidirectionalStream { stream_id: u64, }, OpenSendStream { stream_id: u64, }, Send { stream_id: u64, bytes: Byte, }, SendFinish { stream_id: u64, }, SendRate { stream_id: u64, rate: Rate, }, Receive { stream_id: u64, bytes: Byte, }, ReceiveAll { stream_id: u64, }, ReceiveFinish { stream_id: u64, }, ReceiveRate { stream_id: u64, rate: Rate, }, Park { checkpoint: u64, }, Unpark { checkpoint: u64, }, Trace { trace_id: u64, }, Profile { trace_id: u64, operations: Vec<Connection>, }, Iterate { value: IterateValue, operations: Vec<Connection>, trace_id: Option<u64>, }, Scope { threads: Vec<Vec<Connection>>, },
}

Variants§

§

Sleep

Fields

§amount: Duration

Pause for the specified duration before processing the next op

§

OpenBidirectionalStream

Fields

§stream_id: u64

Open a bidirectional stream with an identifier

§

OpenSendStream

Fields

§stream_id: u64

Open a unidirectional stream with an identifier

§

Send

Fields

§stream_id: u64
§bytes: Byte

Send a specific amount of data over the stream id

§

SendFinish

Fields

§stream_id: u64

Finish sending data on the stream

§

SendRate

Fields

§stream_id: u64
§rate: Rate

Sets the send rate for a stream

§

Receive

Fields

§stream_id: u64
§bytes: Byte

Send a specific amount of data over the stream id

§

ReceiveAll

Fields

§stream_id: u64

Receives all of the data on the stream until it is finished

§

ReceiveFinish

Fields

§stream_id: u64

Finish receiving data on the stream

§

ReceiveRate

Fields

§stream_id: u64
§rate: Rate

Sets the receive rate for a stream

§

Park

Fields

§checkpoint: u64

Parks the current thread and waits for the checkpoint to be unparked

§

Unpark

Fields

§checkpoint: u64

Notifies the parked checkpoint that it can continue

§

Trace

Fields

§trace_id: u64

Emit a trace event

§

Profile

Fields

§trace_id: u64
§operations: Vec<Connection>

Profiles the time it takes to perform the contained operations

§

Iterate

Fields

§operations: Vec<Connection>
§trace_id: Option<u64>

Evaluates the contained operations for the specified value

§

Scope

Fields

§threads: Vec<Vec<Connection>>

Perform operations concurrently

Trait Implementations§

source§

impl Clone for Connection

source§

fn clone(&self) -> Connection

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Connection

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Connection

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for Connection

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for Connection

source§

fn eq(&self, other: &Connection) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Connection

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Connection

source§

impl StructuralEq for Connection

source§

impl StructuralPartialEq for Connection

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Print for T
where T: Serialize,

source§

fn print(&self) -> Result<()>

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, U> Upcast<T> for U
where T: UpcastFrom<U>,

source§

fn upcast(self) -> T

source§

impl<T, B> UpcastFrom<Counter<T, B>> for T

source§

fn upcast_from(value: Counter<T, B>) -> T

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,