Struct paxakos::append::AppendArgs
source · pub struct AppendArgs<I: Invocation, R = DoNotRetry<I>> {
pub round: RangeInclusive<RoundNumOf<I>>,
pub importance: Importance,
pub retry_policy: R,
}
Expand description
Options that determine how an append is performed.
Fields
round: RangeInclusive<RoundNumOf<I>>
The round(s) in which the entry should be appended. The append won’t be started until the round(s) can be settled and will fail if they already are.
importance: Importance
The append’s importance.
retry_policy: R
The retry policy with which to perform the append.
Trait Implementations
sourceimpl<I: Invocation, R: Clone> Clone for AppendArgs<I, R>
impl<I: Invocation, R: Clone> Clone for AppendArgs<I, R>
sourceimpl<I: Debug + Invocation, R: Debug> Debug for AppendArgs<I, R>
impl<I: Debug + Invocation, R: Debug> Debug for AppendArgs<I, R>
sourceimpl<I: Invocation, R: RetryPolicy<Invocation = I> + Default> Default for AppendArgs<I, R>
impl<I: Invocation, R: RetryPolicy<Invocation = I> + Default> Default for AppendArgs<I, R>
sourceimpl<I: Invocation> From<()> for AppendArgs<I>
impl<I: Invocation> From<()> for AppendArgs<I>
sourceimpl<C, I> From<ExponentialBackoff<C>> for AppendArgs<I, RetryWithBackoff<ExponentialBackoff<C>, I>>where
C: Clock + Send + 'static,
I: Invocation + Send,
impl<C, I> From<ExponentialBackoff<C>> for AppendArgs<I, RetryWithBackoff<ExponentialBackoff<C>, I>>where
C: Clock + Send + 'static,
I: Invocation + Send,
sourcefn from(backoff: ExponentialBackoff<C>) -> Self
fn from(backoff: ExponentialBackoff<C>) -> Self
Converts to this type from the input type.
sourceimpl<I, R> From<R> for AppendArgs<I, R>where
I: Invocation,
R: RetryPolicy<Invocation = I>,
impl<I, R> From<R> for AppendArgs<I, R>where
I: Invocation,
R: RetryPolicy<Invocation = I>,
Auto Trait Implementations
impl<I, R> RefUnwindSafe for AppendArgs<I, R>where
R: RefUnwindSafe,
<I as Invocation>::RoundNum: RefUnwindSafe,
impl<I, R> Send for AppendArgs<I, R>where
R: Send,
impl<I, R> Sync for AppendArgs<I, R>where
R: Sync,
impl<I, R> Unpin for AppendArgs<I, R>where
R: Unpin,
impl<I, R> UnwindSafe for AppendArgs<I, R>where
R: UnwindSafe,
<I as Invocation>::RoundNum: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more