pub enum NegotiationRestriction {
DurationReduced {
requested_ns: i64,
negotiated_ns: i64,
},
IntervalIncreased {
requested_ns: i64,
negotiated_ns: i64,
},
IntervalReduced {
requested_ns: i64,
negotiated_ns: i64,
},
LengthReduced {
requested: i64,
negotiated: i64,
},
ReceivedStatsChanged {
requested: ReceivedStats,
negotiated: ReceivedStats,
},
StampAtChanged {
requested: StampAt,
negotiated: StampAt,
},
ClockChanged {
requested: Clock,
negotiated: Clock,
},
DscpChanged {
requested: i64,
negotiated: i64,
},
ServerFillChanged,
}Expand description
A server-side restriction applied during session parameter negotiation.
Variants§
DurationReduced
Run duration was reduced.
A requested duration of 0 means the client requested continuous mode.
When requested_ns == 0 and negotiated_ns > 0, the server limited
that continuous request to a finite duration.
IntervalIncreased
Probe interval was increased.
IntervalReduced
Probe interval was reduced.
LengthReduced
Packet length was reduced.
ReceivedStatsChanged
Returned received-statistics mode differs from the request.
StampAtChanged
Returned timestamp placement differs from the request.
ClockChanged
Returned clock source differs from the request.
DscpChanged
Returned DSCP codepoint differs from the request.
ServerFillChanged
Returned server payload fill behavior differs from the request.
Implementations§
Trait Implementations§
Source§impl Clone for NegotiationRestriction
impl Clone for NegotiationRestriction
Source§fn clone(&self) -> NegotiationRestriction
fn clone(&self) -> NegotiationRestriction
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 moreSource§impl Debug for NegotiationRestriction
impl Debug for NegotiationRestriction
Source§impl Display for NegotiationRestriction
impl Display for NegotiationRestriction
impl Eq for NegotiationRestriction
Source§impl PartialEq for NegotiationRestriction
impl PartialEq for NegotiationRestriction
Source§fn eq(&self, other: &NegotiationRestriction) -> bool
fn eq(&self, other: &NegotiationRestriction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NegotiationRestriction
Auto Trait Implementations§
impl Freeze for NegotiationRestriction
impl RefUnwindSafe for NegotiationRestriction
impl Send for NegotiationRestriction
impl Sync for NegotiationRestriction
impl Unpin for NegotiationRestriction
impl UnsafeUnpin for NegotiationRestriction
impl UnwindSafe for NegotiationRestriction
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