pub struct TraceStorage<S> { /* private fields */ }Expand description
A dialogue storage wrapper which logs all actions performed on an underlying storage.
Reports about any dialogue action via log::Level::Trace.
Implementations§
Source§impl<S> TraceStorage<S>
impl<S> TraceStorage<S>
Trait Implementations§
Source§impl<S, D> Storage<D> for TraceStorage<S>
impl<S, D> Storage<D> for TraceStorage<S>
type Error = <S as Storage<D>>::Error
Source§fn remove_dialogue(
self: Arc<Self>,
key: DialogueKey,
) -> BoxFuture<'static, Result<(), Self::Error>>where
D: Send + 'static,
fn remove_dialogue(
self: Arc<Self>,
key: DialogueKey,
) -> BoxFuture<'static, Result<(), Self::Error>>where
D: Send + 'static,
Removes a dialogue indexed by
key. Read moreSource§fn update_dialogue(
self: Arc<Self>,
key: DialogueKey,
dialogue: D,
) -> BoxFuture<'static, Result<(), Self::Error>>where
D: Send + 'static,
fn update_dialogue(
self: Arc<Self>,
key: DialogueKey,
dialogue: D,
) -> BoxFuture<'static, Result<(), Self::Error>>where
D: Send + 'static,
Updates a dialogue indexed by
key with dialogue.Source§fn get_dialogue(
self: Arc<Self>,
key: DialogueKey,
) -> BoxFuture<'static, Result<Option<D>, Self::Error>>
fn get_dialogue( self: Arc<Self>, key: DialogueKey, ) -> BoxFuture<'static, Result<Option<D>, Self::Error>>
Returns the dialogue indexed by
key.Source§fn get_or_insert_dialogue(
self: Arc<Self>,
key: DialogueKey,
default: fn() -> D,
reset_incompatible: bool,
) -> BoxFuture<'static, Result<D, Self::Error>>
fn get_or_insert_dialogue( self: Arc<Self>, key: DialogueKey, default: fn() -> D, reset_incompatible: bool, ) -> BoxFuture<'static, Result<D, Self::Error>>
Returns the stored dialogue or initializes it with
default if absent.
Implementations must not overwrite a concurrently inserted dialogue.
When reset_incompatible is true, implementations may also replace a
state that fails to deserialize, but must not ignore other errors or
overwrite a concurrent update.Source§fn erase(self: Arc<Self>) -> Arc<ErasedStorage<D>> ⓘ
fn erase(self: Arc<Self>) -> Arc<ErasedStorage<D>> ⓘ
Erases
Self::Error to std::error::Error.Source§impl<S: StorageKeys + Send + Sync + 'static> StorageKeys for TraceStorage<S>
impl<S: StorageKeys + Send + Sync + 'static> StorageKeys for TraceStorage<S>
Auto Trait Implementations§
impl<S> Forget for TraceStorage<S>
impl<S> Freeze for TraceStorage<S>
impl<S> Move for TraceStorage<S>
impl<S> RefUnwindSafe for TraceStorage<S>
impl<S> Send for TraceStorage<S>
impl<S> Sync for TraceStorage<S>
impl<S> Unpin for TraceStorage<S>
impl<S> UnsafeUnpin for TraceStorage<S>
impl<S> UnwindSafe for TraceStorage<S>where
Arc<S>: UnwindSafe,
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> Erasable for T
impl<T> Erasable for T
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