pub enum QoS {
Lossy,
Reliable {
timeout_ms: u64,
},
}Expand description
Quality-of-Service strategy for outgoing delivery.
Chooses between latency-first (drop on backpressure) and reliability-first (await with optional timeout) behavior.
Variants§
Lossy
Latency-critical: do not await; if the user’s queue is full, drop.
Reliable
Reliability-critical: attempt delivery and optionally time out.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QoS
impl RefUnwindSafe for QoS
impl Send for QoS
impl Sync for QoS
impl Unpin for QoS
impl UnwindSafe for QoS
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