pub struct TableHandle(/* private fields */);Expand description
Copy-on-write mounted table. Scored reads clone the current Arc<Table>;
writers replace it only while a read generation is alive.
Implementations§
Source§impl TableHandle
impl TableHandle
pub fn from_table(table: Table) -> Self
pub fn lock(&self) -> TableGuard<'_>
pub fn ptr_eq(&self, other: &Self) -> bool
pub fn read_generation_with_context( &self, context: Option<&AiExecutionContext>, ) -> Result<(Arc<Table>, Snapshot)>
Trait Implementations§
Source§impl Clone for TableHandle
impl Clone for TableHandle
Source§fn clone(&self) -> TableHandle
fn clone(&self) -> TableHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TableHandle
impl !UnwindSafe for TableHandle
impl Freeze for TableHandle
impl Send for TableHandle
impl Sync for TableHandle
impl Unpin for TableHandle
impl UnsafeUnpin for TableHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more