pub struct WorkerDataPlaneSequence { /* private fields */ }Expand description
Per-direction monotonic frame-sequence validator.
Implementations§
Source§impl WorkerDataPlaneSequence
impl WorkerDataPlaneSequence
Sourcepub fn accept(
&mut self,
header: WorkerDataPlaneFrameHeader,
) -> Result<(), WorkerDataPlaneFrameError>
pub fn accept( &mut self, header: WorkerDataPlaneFrameHeader, ) -> Result<(), WorkerDataPlaneFrameError>
Accept exactly the next header in this direction.
§Errors
Rejects gaps, duplicates, replay, and frames after sequence exhaustion.
Trait Implementations§
Source§impl Clone for WorkerDataPlaneSequence
impl Clone for WorkerDataPlaneSequence
impl Copy for WorkerDataPlaneSequence
Source§impl Debug for WorkerDataPlaneSequence
impl Debug for WorkerDataPlaneSequence
Source§impl Default for WorkerDataPlaneSequence
impl Default for WorkerDataPlaneSequence
impl Eq for WorkerDataPlaneSequence
Source§impl PartialEq for WorkerDataPlaneSequence
impl PartialEq for WorkerDataPlaneSequence
impl StructuralPartialEq for WorkerDataPlaneSequence
Auto Trait Implementations§
impl Freeze for WorkerDataPlaneSequence
impl RefUnwindSafe for WorkerDataPlaneSequence
impl Send for WorkerDataPlaneSequence
impl Sync for WorkerDataPlaneSequence
impl Unpin for WorkerDataPlaneSequence
impl UnsafeUnpin for WorkerDataPlaneSequence
impl UnwindSafe for WorkerDataPlaneSequence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.