Enum s2n_netbench::operation::Client
source · pub enum Client {
Sleep {
timeout: Duration,
},
Connect {
server_id: u64,
router_id: Option<u64>,
server_connection_id: u64,
client_connection_id: u64,
},
Park {
checkpoint: u64,
},
Unpark {
checkpoint: u64,
},
Trace {
trace_id: u64,
},
Scope {
threads: Vec<Vec<Client>>,
},
}
Variants§
Sleep
Pause for the specified duration before processing the next op
Connect
Open a connection with an identifier
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
Scope
Perform operations concurrently
Trait Implementations§
source§impl<'de> Deserialize<'de> for Client
impl<'de> Deserialize<'de> for Client
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 PartialEq for Client
impl PartialEq for Client
impl Eq for Client
impl StructuralEq for Client
impl StructuralPartialEq for Client
Auto Trait Implementations§
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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