Struct MemoryReplay
pub struct MemoryReplay { /* private fields */ }Available on crate features
http and std only.Expand description
Bounded, per-request memory storage. The default retains up to 64 KiB of data per upload and allows up to 30 seconds to finish capture.
Implementations§
§impl MemoryReplay
impl MemoryReplay
pub const fn new(max_bytes: u64) -> MemoryReplay
pub const fn new(max_bytes: u64) -> MemoryReplay
Configure the inclusive per-request data limit.
pub const fn with_timeout(self, timeout: Duration) -> MemoryReplay
pub const fn with_timeout(self, timeout: Duration) -> MemoryReplay
Configure the time allowed to complete capture.
pub fn set_timeout(&mut self, timeout: Duration) -> &mut MemoryReplay
pub fn set_timeout(&mut self, timeout: Duration) -> &mut MemoryReplay
Configure the time allowed to complete capture.
Trait Implementations§
§impl Clone for MemoryReplay
impl Clone for MemoryReplay
§fn clone(&self) -> MemoryReplay
fn clone(&self) -> MemoryReplay
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 moreimpl Copy for MemoryReplay
§impl Debug for MemoryReplay
impl Debug for MemoryReplay
§impl Default for MemoryReplay
impl Default for MemoryReplay
§fn default() -> MemoryReplay
fn default() -> MemoryReplay
Returns the “default value” for a type. Read more
§impl ReplayStore for MemoryReplay
impl ReplayStore for MemoryReplay
§fn max_bytes(&self) -> u64
fn max_bytes(&self) -> u64
Inclusive per-request data limit. Exactly this many bytes plus trailers
can still form a complete replay.
§fn timeout(&self) -> Duration
fn timeout(&self) -> Duration
Maximum duration of capture, measured from the start of the first attempt.
§fn reuse_buffered_bytes(&self) -> bool
fn reuse_buffered_bytes(&self) -> bool
Allow an already buffered, trailerless body to be replayed directly from
its shared bytes, bypassing the writer. The layer still enforces its
capture limits. Leave this disabled if the store needs to observe or
account for these uploads.
§fn start(&self) -> Box<dyn ReplayWriter>
fn start(&self) -> Box<dyn ReplayWriter>
Begin a new, empty capture.
Auto Trait Implementations§
impl Forget for MemoryReplay
impl Freeze for MemoryReplay
impl Move for MemoryReplay
impl RefUnwindSafe for MemoryReplay
impl Send for MemoryReplay
impl Sync for MemoryReplay
impl Unpin for MemoryReplay
impl UnsafeUnpin for MemoryReplay
impl UnwindSafe for MemoryReplay
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more