pub struct NoopStateStore;Expand description
Noop implementation: append errors, load returns None, list is empty.
Trait Implementations§
Source§impl Clone for NoopStateStore
impl Clone for NoopStateStore
Source§fn clone(&self) -> NoopStateStore
fn clone(&self) -> NoopStateStore
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 NoopStateStore
Source§impl Debug for NoopStateStore
impl Debug for NoopStateStore
Source§impl Default for NoopStateStore
impl Default for NoopStateStore
Source§fn default() -> NoopStateStore
fn default() -> NoopStateStore
Returns the “default value” for a type. Read more
Source§impl StateStore for NoopStateStore
impl StateStore for NoopStateStore
Source§fn append(
&self,
_entry: PortValue,
) -> Pin<Box<dyn Future<Output = Result<PortId, SdkError>> + Send + '_>>
fn append( &self, _entry: PortValue, ) -> Pin<Box<dyn Future<Output = Result<PortId, SdkError>> + Send + '_>>
Persist an entry. Returns the assigned identifier.
Source§fn load(
&self,
_id: &PortId,
) -> Pin<Box<dyn Future<Output = Result<Option<PortValue>, SdkError>> + Send + '_>>
fn load( &self, _id: &PortId, ) -> Pin<Box<dyn Future<Output = Result<Option<PortValue>, SdkError>> + Send + '_>>
Load an entry by id.
Source§fn list(
&self,
_prefix: &str,
) -> Pin<Box<dyn Future<Output = Result<Vec<PortId>, SdkError>> + Send + '_>>
fn list( &self, _prefix: &str, ) -> Pin<Box<dyn Future<Output = Result<Vec<PortId>, SdkError>> + Send + '_>>
List all entry ids matching the given prefix (e.g.
"session:").Auto Trait Implementations§
impl Freeze for NoopStateStore
impl RefUnwindSafe for NoopStateStore
impl Send for NoopStateStore
impl Sync for NoopStateStore
impl Unpin for NoopStateStore
impl UnsafeUnpin for NoopStateStore
impl UnwindSafe for NoopStateStore
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