pub struct FireAndForget { /* private fields */ }Expand description
Fire-and-forget reliability mode.
No acknowledgments, no retransmission, maximum throughput. Suitable for:
- LLM token streams
- Embeddings
- Intermediate activations
- Metrics/telemetry
Implementations§
Source§impl FireAndForget
impl FireAndForget
Trait Implementations§
Source§impl Debug for FireAndForget
impl Debug for FireAndForget
Source§impl Default for FireAndForget
impl Default for FireAndForget
Source§fn default() -> FireAndForget
fn default() -> FireAndForget
Returns the “default value” for a type. Read more
Source§impl ReliabilityMode for FireAndForget
impl ReliabilityMode for FireAndForget
Source§fn on_send(&mut self, _descriptor: Arc<RetransmitDescriptor>)
fn on_send(&mut self, _descriptor: Arc<RetransmitDescriptor>)
Called when a packet is sent. The descriptor carries pre-
encryption inputs so the retransmit path can rebuild a
fresh-counter packet rather than replaying stale ciphertext.
Source§fn on_receive(&mut self, seq: u64) -> bool
fn on_receive(&mut self, seq: u64) -> bool
Called when a packet is received. Returns true if accepted.
Source§fn build_nack(&self) -> Option<NackPayload>
fn build_nack(&self) -> Option<NackPayload>
Build a NACK payload if there are missing sequences
Source§fn on_nack(&mut self, _nack: &NackPayload) -> Vec<Arc<RetransmitDescriptor>>
fn on_nack(&mut self, _nack: &NackPayload) -> Vec<Arc<RetransmitDescriptor>>
Process a received NACK and return descriptors for the
caller to rebuild + dispatch. The returned
Arc clones
share the inner RetransmitDescriptor allocation; the
caller bumps the refcount instead of deep-cloning the
Vec<Bytes> of events.Source§fn get_timed_out(&mut self) -> Vec<Arc<RetransmitDescriptor>>
fn get_timed_out(&mut self) -> Vec<Arc<RetransmitDescriptor>>
Get descriptors that need retransmission due to timeout. See
Self::on_nack for the Arc-sharing contract.Source§fn has_pending(&self) -> bool
fn has_pending(&self) -> bool
Check if there are unacknowledged packets
Auto Trait Implementations§
impl !Freeze for FireAndForget
impl RefUnwindSafe for FireAndForget
impl Send for FireAndForget
impl Sync for FireAndForget
impl Unpin for FireAndForget
impl UnsafeUnpin for FireAndForget
impl UnwindSafe for FireAndForget
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