pub struct RequestReassembler { /* private fields */ }Expand description
Collects request fragments on the drone until a request is whole.
Bounded in count, bytes and time: the uplink is a broadcast any fleet member can transmit on, and nothing in a fragment is authenticated until the whole object (and the ticket inside it) has arrived.
Implementations§
Source§impl RequestReassembler
impl RequestReassembler
pub fn new() -> Self
Sourcepub fn push(
&mut self,
fragment: &RequestFragment<'_>,
now: Instant,
) -> ReassemblyOutcome
pub fn push( &mut self, fragment: &RequestFragment<'_>, now: Instant, ) -> ReassemblyOutcome
Feed one fragment received at now.
Sourcepub fn partial_count(&self) -> usize
pub fn partial_count(&self) -> usize
Requests currently partially held.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestReassembler
impl RefUnwindSafe for RequestReassembler
impl Send for RequestReassembler
impl Sync for RequestReassembler
impl Unpin for RequestReassembler
impl UnsafeUnpin for RequestReassembler
impl UnwindSafe for RequestReassembler
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