Enum s2n_netbench::operation::Connection
source · 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
Pause for the specified duration before processing the next op
OpenBidirectionalStream
Open a bidirectional stream with an identifier
OpenSendStream
Open a unidirectional stream with an identifier
Send
Send a specific amount of data over the stream id
SendFinish
Finish sending data on the stream
SendRate
Sets the send rate for a stream
Receive
Send a specific amount of data over the stream id
ReceiveAll
Receives all of the data on the stream until it is finished
ReceiveFinish
Finish receiving data on the stream
ReceiveRate
Sets the receive rate for a stream
Park
Parks the current thread and waits for the checkpoint to be unparked
Unpark
Notifies the parked checkpoint that it can continue
Trace
Emit a trace event
Profile
Profiles the time it takes to perform the contained operations
Iterate
Evaluates the contained operations for the specified value
Scope
Fields
§
threads: Vec<Vec<Connection>>
Perform operations concurrently
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Connection
impl Debug for Connection
source§impl<'de> Deserialize<'de> for Connection
impl<'de> Deserialize<'de> for Connection
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl Hash for Connection
source§impl PartialEq for Connection
impl PartialEq for Connection
source§fn eq(&self, other: &Connection) -> bool
fn eq(&self, other: &Connection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Connection
impl Serialize for Connection
impl Eq for Connection
impl StructuralEq for Connection
impl StructuralPartialEq for Connection
Auto Trait Implementations§
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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