Struct persist::mem::MemRegistry [−][src]
pub struct MemRegistry {
log: Arc<Mutex<MemLogCore>>,
blob: Arc<Mutex<MemBlobCore>>,
}
Fields
log: Arc<Mutex<MemLogCore>>
blob: Arc<Mutex<MemBlobCore>>
Implementations
Constructs a new, empty MemRegistry
Opens the MemLog contained by this registry.
Opens the MemBlob contained by this registry.
Returns a RuntimeClient using the MemLog and MemBlob contained by this registry.
pub fn indexed_unreliable(
&mut self,
unreliable: UnreliableHandle
) -> Result<Indexed<UnreliableLog<MemLog>, UnreliableBlob<MemBlob>>, Error>
pub fn indexed_unreliable(
&mut self,
unreliable: UnreliableHandle
) -> Result<Indexed<UnreliableLog<MemLog>, UnreliableBlob<MemBlob>>, Error>
Returns a RuntimeClient with unreliable storage backed by the given
UnreliableHandle
.
Starts a RuntimeClient using the MemLog and MemBlob contained by this registry.
pub fn runtime_unreliable(
&mut self,
unreliable: UnreliableHandle
) -> Result<RuntimeClient, Error>
pub fn runtime_unreliable(
&mut self,
unreliable: UnreliableHandle
) -> Result<RuntimeClient, Error>
Open a RuntimeClient with unreliable storage backed by the given
UnreliableHandle
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MemRegistry
impl Send for MemRegistry
impl Sync for MemRegistry
impl Unpin for MemRegistry
impl UnwindSafe for MemRegistry
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more