pub struct ReplayBase {
pub tokens: Vec<u32>,
pub hashes: Vec<u64>,
}Expand description
Replay tokens of one request and their sequence hashes, including a trailing partial block.
Fields§
§tokens: Vec<u32>§hashes: Vec<u64>Implementations§
Source§impl ReplayBase
impl ReplayBase
Sourcepub fn derive(
source: Option<&ReplayBase>,
shared_tokens: usize,
tokens: Vec<u32>,
block_size: usize,
) -> Result<Self>
pub fn derive( source: Option<&ReplayBase>, shared_tokens: usize, tokens: Vec<u32>, block_size: usize, ) -> Result<Self>
Hashes tokens, whose first shared_tokens tokens were copied from source.
Sequence hashes chain from the first block, so every full block inside the copied prefix keeps the source’s hash and only the remaining blocks are hashed.
Trait Implementations§
Source§impl Clone for ReplayBase
impl Clone for ReplayBase
Source§impl Debug for ReplayBase
impl Debug for ReplayBase
Auto Trait Implementations§
impl Freeze for ReplayBase
impl RefUnwindSafe for ReplayBase
impl Send for ReplayBase
impl Sync for ReplayBase
impl Unpin for ReplayBase
impl UnsafeUnpin for ReplayBase
impl UnwindSafe for ReplayBase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more