pub struct DurableGraphLifecycleOptions { /* private fields */ }Expand description
Retry policy for atomic graph lifecycle mutations.
Implementations§
Source§impl DurableGraphLifecycleOptions
impl DurableGraphLifecycleOptions
Sourcepub const HARD_MAXIMUM_MUTATION_ATTEMPTS: u8 = 10
pub const HARD_MAXIMUM_MUTATION_ATTEMPTS: u8 = 10
Absolute number of identical durable mutation attempts.
Sourcepub fn new(
maximum_mutation_attempts: u8,
mutation_retry_initial_delay: Duration,
) -> Result<Self, DurableGraphLifecycleOptionsError>
pub fn new( maximum_mutation_attempts: u8, mutation_retry_initial_delay: Duration, ) -> Result<Self, DurableGraphLifecycleOptionsError>
Constructs an explicit bounded retry policy.
§Errors
Rejects zero/excessive attempts or a zero/greater-than-one-second initial delay.
Sourcepub const fn maximum_mutation_attempts(self) -> u8
pub const fn maximum_mutation_attempts(self) -> u8
Returns the maximum identical attempts for one mutation.
Sourcepub const fn mutation_retry_initial_delay(self) -> Duration
pub const fn mutation_retry_initial_delay(self) -> Duration
Returns the first exponential retry delay.
Trait Implementations§
Source§impl Clone for DurableGraphLifecycleOptions
impl Clone for DurableGraphLifecycleOptions
impl Copy for DurableGraphLifecycleOptions
Source§impl Debug for DurableGraphLifecycleOptions
impl Debug for DurableGraphLifecycleOptions
impl Eq for DurableGraphLifecycleOptions
impl StructuralPartialEq for DurableGraphLifecycleOptions
Auto Trait Implementations§
impl Forget for DurableGraphLifecycleOptions
impl Freeze for DurableGraphLifecycleOptions
impl Move for DurableGraphLifecycleOptions
impl RefUnwindSafe for DurableGraphLifecycleOptions
impl Send for DurableGraphLifecycleOptions
impl Sync for DurableGraphLifecycleOptions
impl Unpin for DurableGraphLifecycleOptions
impl UnsafeUnpin for DurableGraphLifecycleOptions
impl UnwindSafe for DurableGraphLifecycleOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more