pub struct ArqBounds {
pub receiver: ReceiverBounds,
pub sender: SenderBounds,
}Expand description
Both ARQ halves’ bounds, as a link takes them.
Fields§
§receiver: ReceiverBoundsThe receiving half’s bounds.
sender: SenderBoundsThe sending half’s bounds.
Implementations§
Source§impl ArqBounds
impl ArqBounds
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Refuse a bound that cannot work: a window, skip list or ACK table of zero
tracks nothing, a NAK that may mark no packet disables retransmission, and a
pacing burst of zero never sends. A zero
SenderBounds::min_retransmit_interval is allowed and means no floor.
§Errors
crate::Error::InvalidConfig naming the field.
Source§impl ArqBounds
impl ArqBounds
Sourcepub fn for_profile(profile: Profile) -> Self
pub fn for_profile(profile: Profile) -> Self
The Profile preset, replaceable through its with_* setters.
Sourcepub fn with_receiver(self, value: ReceiverBounds) -> Self
pub fn with_receiver(self, value: ReceiverBounds) -> Self
Replace Self::receiver.
Sourcepub fn with_sender(self, value: SenderBounds) -> Self
pub fn with_sender(self, value: SenderBounds) -> Self
Replace Self::sender.
Trait Implementations§
impl Copy for ArqBounds
impl Eq for ArqBounds
impl StructuralPartialEq for ArqBounds
Auto Trait Implementations§
impl Forget for ArqBounds
impl Freeze for ArqBounds
impl Move for ArqBounds
impl RefUnwindSafe for ArqBounds
impl Send for ArqBounds
impl Sync for ArqBounds
impl Unpin for ArqBounds
impl UnsafeUnpin for ArqBounds
impl UnwindSafe for ArqBounds
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