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]>, T: Copy> ArcHandle<B, T>
impl<B: AsRef<[u8]>, T: Copy> ArcHandle<B, T>
sourcepub fn as_bytes_handle(&self) -> Handle<'_, T> ⓘ
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
source§impl<P: Deref> BaseHandle<P, ()>
impl<P: Deref> BaseHandle<P, ()>
source§impl<P: Deref> BaseHandle<P, ()>
impl<P: Deref> BaseHandle<P, ()>
sourcepub fn into_tables(self) -> BaseResult<P, FDBHeader>
pub fn into_tables(self) -> BaseResult<P, FDBHeader>
Get the tables
source§impl<P: Deref> BaseHandle<P, FDBHeader>
impl<P: Deref> BaseHandle<P, FDBHeader>
sourcepub fn into_table_at(
self,
index: usize,
) -> BaseResult<P, Option<FDBTableHeader>>
pub fn into_table_at( self, index: usize, ) -> BaseResult<P, Option<FDBTableHeader>>
Get the tables
sourcepub fn into_table_by_name(
self,
name: &Latin1Str,
) -> BaseResult<P, Option<FDBTableHeader>>
pub fn into_table_by_name( self, name: &Latin1Str, ) -> BaseResult<P, Option<FDBTableHeader>>
Get the tables
source§impl<P: Deref> BaseHandle<P, FDBTableDataHeader>
impl<P: Deref> BaseHandle<P, FDBTableDataHeader>
sourcepub fn get_bucket_for_hash(self, id: u32) -> BaseResult<P, FDBBucketHeader>
pub fn get_bucket_for_hash(self, id: u32) -> BaseResult<P, FDBBucketHeader>
Get the bucket for a particular id / hash
source§impl<P: Deref> BaseHandle<P, FDBTableHeader>
impl<P: Deref> BaseHandle<P, FDBTableHeader>
sourcepub fn into_definition(self) -> BaseResult<P, FDBTableDefHeader>
pub fn into_definition(self) -> BaseResult<P, FDBTableDefHeader>
Get the tables
sourcepub fn into_data(self) -> BaseResult<P, FDBTableDataHeader>
pub fn into_data(self) -> BaseResult<P, FDBTableDataHeader>
Get the tables
source§impl<T, P: Deref> BaseHandle<P, Option<T>>
impl<T, P: Deref> BaseHandle<P, Option<T>>
sourcepub fn transpose(self) -> Option<BaseHandle<P, T>>
pub fn transpose(self) -> Option<BaseHandle<P, T>>
Turns a handle of an option into an option of a handle
source§impl<P: Deref, T> BaseHandle<P, T>
impl<P: Deref, T> BaseHandle<P, T>
sourcepub fn replace<O>(self, raw: O) -> BaseHandle<P, O>
pub fn replace<O>(self, raw: O) -> BaseHandle<P, O>
Replace the value that is stored with the memory pointer
source§impl<P: Deref, T> BaseHandle<P, T>
impl<P: Deref, T> BaseHandle<P, T>
sourcepub fn map_into<M, O, E>(self, map: M) -> BaseResult<P, O>
pub fn map_into<M, O, E>(self, map: M) -> BaseResult<P, O>
Get the tables
Trait Implementations
source§impl<P: Clone + Deref, T: Clone> Clone for BaseHandle<P, T>
impl<P: Clone + Deref, T: Clone> Clone for BaseHandle<P, T>
source§fn clone(&self) -> BaseHandle<P, T>
fn clone(&self) -> BaseHandle<P, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more