pub struct StreamContext {
pub stream_id: Vec<u8>,
pub last_seen_seq: i64,
}Expand description
Verifier state tracked per stream_id for v1.1 stream-bound bundles.
last_seen_seq is the highest sequence number the verifier has already
accepted for stream_id; zero means no turns accepted yet, so the first
valid bundle must carry stream_seq == 1.
Fields§
§stream_id: Vec<u8>§last_seen_seq: i64Trait Implementations§
Source§impl Clone for StreamContext
impl Clone for StreamContext
Source§fn clone(&self) -> StreamContext
fn clone(&self) -> StreamContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamContext
impl Debug for StreamContext
Source§impl Default for StreamContext
impl Default for StreamContext
Source§fn default() -> StreamContext
fn default() -> StreamContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamContext
impl RefUnwindSafe for StreamContext
impl Send for StreamContext
impl Sync for StreamContext
impl Unpin for StreamContext
impl UnsafeUnpin for StreamContext
impl UnwindSafe for StreamContext
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