Struct chain_impl_mockchain::multiverse::Ref
source · pub struct Ref<State> {
hash: HeaderId,
state: Arc<State>,
}
Expand description
A RAII wrapper around a block identifier and the state pointer that keeps the state corresponding to the block pinned in memory.
Fields§
§hash: HeaderId
§state: Arc<State>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<State> RefUnwindSafe for Ref<State>where State: RefUnwindSafe,
impl<State> Send for Ref<State>where State: Send + Sync,
impl<State> Sync for Ref<State>where State: Send + Sync,
impl<State> Unpin for Ref<State>
impl<State> UnwindSafe for Ref<State>where State: RefUnwindSafe,
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