Type Alias assembly_fdb::ro::ArcHandle

source ·
pub type ArcHandle<B, T> = BaseHandle<Arc<B>, T>;
Expand description

An owned, atomically-reference counted handle to a database

Aliased Type§

struct ArcHandle<B, T> { /* private fields */ }

Implementations§

source§

impl<B: AsRef<[u8]>> ArcHandle<B, ()>

source

pub fn new_arc(inner: B) -> Self

Create a new atomically-reference counted handle

source§

impl<B: AsRef<[u8]>, T: Copy> ArcHandle<B, T>

source

pub fn as_bytes_handle(&self) -> Handle<'_, T>

Borrow the atomically-reference counted handle as a byte handle

You can use this function to make cloning cheaper