Struct mainnet_lib::SharedInMemoryDbSync
source · pub struct SharedInMemoryDbSync {
pub(crate) update_thread: JoinHandle<()>,
pub(crate) db_sync: Arc<RwLock<InMemoryDbSync>>,
}
Expand description
thread safe InMemoryDbSync
. It has inner struct db_sync
with rw lock guard and handle to update
thread which listen to InMemoryNode
mock block updates
Fields§
§update_thread: JoinHandle<()>
§db_sync: Arc<RwLock<InMemoryDbSync>>
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§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§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request