pub struct LocalBlobCleanupIntent { /* private fields */ }Expand description
A transaction-local request that resolves into committed copy-specific cleanup obligations.
Implementations§
Source§impl LocalBlobCleanupIntent
impl LocalBlobCleanupIntent
pub fn local(namespace: impl Into<String>, blob_id: impl Into<String>) -> Self
pub fn for_row( namespace: impl Into<String>, blob_id: impl Into<String>, table: impl Into<String>, row_id: impl Into<String>, ) -> Self
pub fn exact( namespace: impl Into<String>, blob_id: impl Into<String>, locator_hash: ObjectHash, ) -> Self
pub fn persisted_identity(&self) -> Result<String, DbError>
pub fn from_persisted( namespace: String, blob_id: String, identity: String, ) -> Result<Self, InvalidObjectHash>
pub fn namespace(&self) -> &str
pub fn blob_id(&self) -> &str
pub fn identity(&self) -> &LocalBlobCleanupIdentity
pub async fn apply(&self, store_dir: &StoreDir) -> Result<(), DbError>
Trait Implementations§
Source§impl Clone for LocalBlobCleanupIntent
impl Clone for LocalBlobCleanupIntent
Source§fn clone(&self) -> LocalBlobCleanupIntent
fn clone(&self) -> LocalBlobCleanupIntent
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 LocalBlobCleanupIntent
impl Debug for LocalBlobCleanupIntent
Source§impl PartialEq for LocalBlobCleanupIntent
impl PartialEq for LocalBlobCleanupIntent
impl Eq for LocalBlobCleanupIntent
impl StructuralPartialEq for LocalBlobCleanupIntent
Auto Trait Implementations§
impl Freeze for LocalBlobCleanupIntent
impl RefUnwindSafe for LocalBlobCleanupIntent
impl Send for LocalBlobCleanupIntent
impl Sync for LocalBlobCleanupIntent
impl Unpin for LocalBlobCleanupIntent
impl UnsafeUnpin for LocalBlobCleanupIntent
impl UnwindSafe for LocalBlobCleanupIntent
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.