pub struct MigrationExecutionControl { /* private fields */ }Expand description
Immutable controls shared by apply and rollback execution.
Implementations§
Source§impl MigrationExecutionControl
impl MigrationExecutionControl
Sourcepub const fn new(
cancellation: MigrationCancellation,
deadline: Option<Instant>,
resources: MigrationExecutionResourceLimits,
) -> Self
pub const fn new( cancellation: MigrationCancellation, deadline: Option<Instant>, resources: MigrationExecutionResourceLimits, ) -> Self
Bind cancellation, one absolute monotonic deadline, and tightened limits.
Sourcepub const fn cancellation(&self) -> &MigrationCancellation
pub const fn cancellation(&self) -> &MigrationCancellation
Return the cancellation authority.
Sourcepub const fn deadline(&self) -> Option<Instant>
pub const fn deadline(&self) -> Option<Instant>
Return the absolute monotonic deadline, when bounded.
Sourcepub const fn resources(&self) -> MigrationExecutionResourceLimits
pub const fn resources(&self) -> MigrationExecutionResourceLimits
Return caller-tightened resource limits.
Sourcepub fn check(&self) -> Result<(), Diagnostic>
pub fn check(&self) -> Result<(), Diagnostic>
Reject work at a safe coordinator boundary before another effect begins.
Trait Implementations§
Source§impl Clone for MigrationExecutionControl
impl Clone for MigrationExecutionControl
Source§fn clone(&self) -> MigrationExecutionControl
fn clone(&self) -> MigrationExecutionControl
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 MigrationExecutionControl
impl Debug for MigrationExecutionControl
Source§impl Default for MigrationExecutionControl
impl Default for MigrationExecutionControl
Source§fn default() -> MigrationExecutionControl
fn default() -> MigrationExecutionControl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MigrationExecutionControl
impl RefUnwindSafe for MigrationExecutionControl
impl Send for MigrationExecutionControl
impl Sync for MigrationExecutionControl
impl Unpin for MigrationExecutionControl
impl UnsafeUnpin for MigrationExecutionControl
impl UnwindSafe for MigrationExecutionControl
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