struct TestingStateMgrStorage {
lock_available: bool,
entries: HashMap<String, String>,
}
Available on crate feature
testing
only.Expand description
Implementation type for TestingStateMgr
: represents an underlying
storage system that can be shared by multiple TestingStateMgr instances
at a time, only one of which can hold the lock.
Fields§
§lock_available: bool
True if nobody currently holds the lock for this storage.
entries: HashMap<String, String>
Map from key to JSON-encoded values.
We serialize our values here for convenience (so that we don’t
have to use Any
) and to try to detect any
serialization-related bugs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestingStateMgrStorage
impl RefUnwindSafe for TestingStateMgrStorage
impl Send for TestingStateMgrStorage
impl Sync for TestingStateMgrStorage
impl Unpin for TestingStateMgrStorage
impl UnwindSafe for TestingStateMgrStorage
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<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