pub struct InMemoryAnswerLog { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl AnswerLog for InMemoryAnswerLog
impl AnswerLog for InMemoryAnswerLog
Source§fn record<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 AnswerRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 AnswerRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Records the answer that decided
record.approval_id.Source§fn find<'life0, 'life1, 'async_trait>(
&'life0 self,
approval_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AnswerRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find<'life0, 'life1, 'async_trait>(
&'life0 self,
approval_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AnswerRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The answer that decided
approval_id, when it was given through a surface.Source§fn since<'life0, 'async_trait>(
&'life0 self,
at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AnswerRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn since<'life0, 'async_trait>(
&'life0 self,
at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AnswerRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The answers given through a surface since
at, oldest first: what “How you answered”
counts (spec 3.3 §5.1). The default lists none.Source§fn find_for<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<AnswerRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_for<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<Option<AnswerRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
The answer that decided
request, when it was given through a surface: what the
engine reads for a decided card. A log may use the request’s times to read less; the
default calls find.Source§impl Clone for InMemoryAnswerLog
impl Clone for InMemoryAnswerLog
Source§impl Debug for InMemoryAnswerLog
impl Debug for InMemoryAnswerLog
Auto Trait Implementations§
impl Forget for InMemoryAnswerLog
impl Freeze for InMemoryAnswerLogwhere
*const ArcInner<Mutex<HashMap<String, AnswerRecord>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<HashMap<String, AnswerRecord>>>>: Freeze,
impl Move for InMemoryAnswerLog
impl RefUnwindSafe for InMemoryAnswerLog
impl Send for InMemoryAnswerLog
impl Sync for InMemoryAnswerLog
impl Unpin for InMemoryAnswerLog
impl UnsafeUnpin for InMemoryAnswerLogwhere
*const ArcInner<Mutex<HashMap<String, AnswerRecord>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<String, AnswerRecord>>>>: UnsafeUnpin,
impl UnwindSafe for InMemoryAnswerLog
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§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,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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