pub struct MemoryBucketLogProvider { /* private fields */ }Expand description
In-memory bucket log provider using HashMaps
Implementations§
Trait Implementations§
Source§impl BucketLogProvider for MemoryBucketLogProvider
impl BucketLogProvider for MemoryBucketLogProvider
type Error = MemoryBucketLogProviderError
fn exists<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<bool, BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn heads<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Link>, BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn heads<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Link>, BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the possible heads for a bucket
based on passed height Read more
Source§fn append<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
name: String,
current: Link,
previous: Option<Link>,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<(), BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
name: String,
current: Link,
previous: Option<Link>,
height: u64,
) -> Pin<Box<dyn Future<Output = Result<(), BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Append a version of the bucket to the log Read more
Source§fn height<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<u64, BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn height<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<u64, BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the greatest height of the bucket version within the chain Read more
Source§fn has<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
link: Link,
) -> Pin<Box<dyn Future<Output = Result<Vec<u64>, BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn has<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
link: Link,
) -> Pin<Box<dyn Future<Output = Result<Vec<u64>, BucketLogError<Self::Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if a link exists within a bucket Read more
Source§impl Clone for MemoryBucketLogProvider
impl Clone for MemoryBucketLogProvider
Source§fn clone(&self) -> MemoryBucketLogProvider
fn clone(&self) -> MemoryBucketLogProvider
Returns a duplicate 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 moreSource§impl Debug for MemoryBucketLogProvider
impl Debug for MemoryBucketLogProvider
Auto Trait Implementations§
impl Freeze for MemoryBucketLogProvider
impl RefUnwindSafe for MemoryBucketLogProvider
impl Send for MemoryBucketLogProvider
impl Sync for MemoryBucketLogProvider
impl Unpin for MemoryBucketLogProvider
impl UnwindSafe for MemoryBucketLogProvider
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