pub struct Latency {
pub receipt: SignedDuration,
pub answer: SignedDuration,
}Expand description
How long a simulated peer takes: to send a receipt, and to answer.
Fields§
§receipt: SignedDurationFrom an inbound call to its technical receipt (TEQ).
answer: SignedDurationFrom the event a business message answers to the message.
Implementations§
Source§impl Latency
impl Latency
Sourcepub fn receipt_within(&self, max: SignedDuration) -> SignedDuration
pub fn receipt_within(&self, max: SignedDuration) -> SignedDuration
The receipt delay, at least zero and at most max (the receipt’s deadline), so a
receipt never leaves its deadline.
Sourcepub fn answer(&self) -> SignedDuration
pub fn answer(&self) -> SignedDuration
The answer delay, at least zero.
Trait Implementations§
impl Copy for Latency
impl Eq for Latency
impl StructuralPartialEq for Latency
Auto Trait Implementations§
impl Forget for Latency
impl Freeze for Latency
impl Move for Latency
impl RefUnwindSafe for Latency
impl Send for Latency
impl Sync for Latency
impl Unpin for Latency
impl UnsafeUnpin for Latency
impl UnwindSafe for Latency
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