pub struct NoCache<S> { /* private fields */ }Expand description
NoCache is a placeholder allowing quick development,
not recommended for production usage
Implementations§
Trait Implementations§
Source§impl<S> CacheDb<S> for NoCache<S>where
S: Dto,
impl<S> CacheDb<S> for NoCache<S>where
S: Dto,
Source§fn get_from_db(
&self,
_prefix: Option<&str>,
_key: &ModelKey,
) -> Result<Option<String>, DbError>
fn get_from_db( &self, _prefix: Option<&str>, _key: &ModelKey, ) -> Result<Option<String>, DbError>
internal function to read from the db Read more
Source§fn set_in_db(
&self,
_prefix: Option<&str>,
_key: &ModelKey,
_state: String,
) -> Result<(), DbError>
fn set_in_db( &self, _prefix: Option<&str>, _key: &ModelKey, _state: String, ) -> Result<(), DbError>
internal function to write in the db Read more
Auto Trait Implementations§
impl<S> Freeze for NoCache<S>
impl<S> RefUnwindSafe for NoCache<S>where
S: RefUnwindSafe,
impl<S> Send for NoCache<S>where
S: Send,
impl<S> Sync for NoCache<S>where
S: Sync,
impl<S> Unpin for NoCache<S>where
S: Unpin,
impl<S> UnsafeUnpin for NoCache<S>
impl<S> UnwindSafe for NoCache<S>where
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request