pub struct MemoryParStore {
entries: RwLock<HashMap<String, PushedRequest>>,
}Expand description
The in-process PAR store.
Fields§
§entries: RwLock<HashMap<String, PushedRequest>>Implementations§
Trait Implementations§
Source§impl Debug for MemoryParStore
impl Debug for MemoryParStore
Source§impl Default for MemoryParStore
impl Default for MemoryParStore
Source§fn default() -> MemoryParStore
fn default() -> MemoryParStore
Returns the “default value” for a type. Read more
Source§impl ParStore for MemoryParStore
impl ParStore for MemoryParStore
Source§fn mint(&self) -> String
fn mint(&self) -> String
Mints a fresh
request_uri, drawn from the same random source and
format ParStore::push uses, without storing anything under it. Read moreSource§fn push(&self, request: PushedRequest) -> String
fn push(&self, request: PushedRequest) -> String
Stores a freshly pushed request, under a
request_uri from
ParStore::mint.Auto Trait Implementations§
impl !Freeze for MemoryParStore
impl RefUnwindSafe for MemoryParStore
impl Send for MemoryParStore
impl Sync for MemoryParStore
impl Unpin for MemoryParStore
impl UnsafeUnpin for MemoryParStore
impl UnwindSafe for MemoryParStore
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<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