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,
) -> MigrationExecutionControl
pub const fn new( cancellation: MigrationCancellation, deadline: Option<Instant>, resources: MigrationExecutionResourceLimits, ) -> MigrationExecutionControl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request