[−][src]Struct foundationdb::tuple::hca::HighContentionAllocator
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]
&'_ self,
trx: &'_ Transaction
) -> Result<i64, HcaError>
Returns a byte string that
- has never and will never be returned by another call to this method on the same subspace
- is nearly as short as possible given the above
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,