pub struct MigrationLease { /* private fields */ }Expand description
Store-issued authority to mutate one migration scope.
Implementations§
Source§impl MigrationLease
impl MigrationLease
Sourcepub const fn new(
scope: ExecutionScope,
holder: LeaseHolderId,
fence: ExecutionFence,
) -> Self
pub const fn new( scope: ExecutionScope, holder: LeaseHolderId, fence: ExecutionFence, ) -> Self
Construct an unbound lease returned by a provider-neutral store.
Sourcepub const fn scope(&self) -> &ExecutionScope
pub const fn scope(&self) -> &ExecutionScope
Return the leased scope.
Sourcepub const fn holder(&self) -> &LeaseHolderId
pub const fn holder(&self) -> &LeaseHolderId
Return the holder identity.
Sourcepub const fn fence(&self) -> ExecutionFence
pub const fn fence(&self) -> ExecutionFence
Return the store-issued fence.
Trait Implementations§
Source§impl Clone for MigrationLease
impl Clone for MigrationLease
Source§fn clone(&self) -> MigrationLease
fn clone(&self) -> MigrationLease
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 moreSource§impl Debug for MigrationLease
impl Debug for MigrationLease
impl Eq for MigrationLease
Auto Trait Implementations§
impl Freeze for MigrationLease
impl RefUnwindSafe for MigrationLease
impl Send for MigrationLease
impl Sync for MigrationLease
impl Unpin for MigrationLease
impl UnsafeUnpin for MigrationLease
impl UnwindSafe for MigrationLease
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