[][src]Struct foundationdb::tuple::hca::HighContentionAllocator

pub struct HighContentionAllocator { /* fields omitted */ }

Represents a High Contention Allocator for a given subspace

Implementations

impl HighContentionAllocator[src]

pub fn new(subspace: Subspace) -> HighContentionAllocator[src]

Constructs an allocator that will use the input subspace for assigning values. The given subspace should not be used by anything other than the allocator

pub async fn allocate<'_, '_>(
    &'_ self,
    trx: &'_ Transaction
) -> Result<i64, HcaError>
[src]

Returns a byte string that

  1. has never and will never be returned by another call to this method on the same subspace
  2. is nearly as short as possible given the above

Trait Implementations

impl Debug for HighContentionAllocator[src]

Auto Trait Implementations

impl RefUnwindSafe for HighContentionAllocator

impl Send for HighContentionAllocator

impl Sync for HighContentionAllocator

impl Unpin for HighContentionAllocator

impl UnwindSafe for HighContentionAllocator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,