pub struct SimulatedEndpoint {
pub config: EndpointConfig,
pub workers: usize,
pub service_time: Duration,
}Expand description
A fixed-service-time endpoint used by simulate.
Fields§
§config: EndpointConfigController configuration used for this endpoint.
workers: usizeNumber of parallel workers available at the endpoint.
service_time: DurationTime spent by one worker processing a request.
Trait Implementations§
Source§impl Clone for SimulatedEndpoint
impl Clone for SimulatedEndpoint
Source§fn clone(&self) -> SimulatedEndpoint
fn clone(&self) -> SimulatedEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SimulatedEndpoint
impl RefUnwindSafe for SimulatedEndpoint
impl Send for SimulatedEndpoint
impl Sync for SimulatedEndpoint
impl Unpin for SimulatedEndpoint
impl UnsafeUnpin for SimulatedEndpoint
impl UnwindSafe for SimulatedEndpoint
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