Skip to main content

DurableGraphDriverOptions

Struct DurableGraphDriverOptions 

Source
pub struct DurableGraphDriverOptions { /* private fields */ }
Expand description

Resource, lease, deadline, and retry policy for one durable driver.

Implementations§

Source§

impl DurableGraphDriverOptions

Source

pub const HARD_MAXIMUM_DURABLE_EVENTS: u32 = 65_536

Absolute work quantum accepted for one call to DurableGraphDriver::drive.

Source

pub const HARD_MAXIMUM_MUTATION_ATTEMPTS: u8 = 10

Absolute number of identical durable mutation attempts.

Source

pub const HARD_MINIMUM_CANCELLATION_POLL_INTERVAL: Duration

Fastest accepted database polling cadence for durable cancellation intent.

Source

pub const HARD_MAXIMUM_CANCELLATION_POLL_INTERVAL: Duration

Slowest accepted observation cadence for durable cancellation intent.

Source

pub const HARD_MAXIMUM_CANCELLATION_GRACE_PERIOD: Duration

Longest cooperative cleanup window after durable cancellation wins.

Source

pub const HARD_MAXIMUM_PARALLEL_NODES: u16 = 64

Absolute process-local concurrency ceiling for one run.

Source

pub fn new( replay_limits: GraphReplayLimits, maximum_durable_events: u32, lease_renewal_interval: Duration, node_execution_timeout: Duration, maximum_mutation_attempts: u8, mutation_retry_initial_delay: Duration, ) -> Result<Self, DurableGraphDriverOptionsError>

Constructs a fully explicit driver policy.

§Errors

Rejects a work quantum below one complete node start/completion pair, invalid renewal precision, a zero or excessive node deadline, and unsafe mutation retry parameters.

Source

pub fn with_cancellation_timing( self, poll_interval: Duration, grace_period: Duration, ) -> Result<Self, DurableGraphDriverOptionsError>

Overrides the database cancellation-observation cadence and cooperative node cleanup window.

§Errors

Rejects non-microsecond-aligned or production-unbounded values. The poll interval is also bounded below so one bad configuration cannot turn each active node into an unbounded database query loop.

Source

pub fn with_parallel_node_limit( self, maximum_parallel_nodes: u16, ) -> Result<Self, DurableGraphDriverOptionsError>

Enables bounded overlap for executors that explicitly declare the journal-isolated scheduling contract.

The effective batch width is the minimum of this value, the compiled graph limit, the ready set, and the remaining durable-event quantum. Exclusive executors always run alone.

§Errors

Rejects zero or process-unbounded concurrency.

Source

pub const fn replay_limits(self) -> GraphReplayLimits

Returns the memory ceiling shared by historical replay and current barrier materialization.

Source

pub const fn maximum_durable_events(self) -> u32

Returns the maximum driver-owned durable events in one drive call.

Source

pub const fn lease_renewal_interval(self) -> Duration

Returns the monotonic interval between renewal attempts.

Source

pub const fn node_execution_timeout(self) -> Duration

Returns the hard wall-clock deadline for one node task.

Source

pub const fn cancellation_poll_interval(self) -> Duration

Returns the bounded database polling cadence for cancellation intent.

Source

pub const fn cancellation_grace_period(self) -> Duration

Returns the cooperative cleanup window after cancellation is observed.

Source

pub const fn maximum_parallel_nodes(self) -> u16

Returns the process-local ready-node concurrency ceiling.

Source

pub const fn maximum_mutation_attempts(self) -> u8

Returns the maximum identical attempts for one idempotent mutation.

Source

pub const fn mutation_retry_initial_delay(self) -> Duration

Returns the first exponential mutation retry delay.

Trait Implementations§

Source§

impl Clone for DurableGraphDriverOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DurableGraphDriverOptions

Source§

impl Debug for DurableGraphDriverOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DurableGraphDriverOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for DurableGraphDriverOptions

Source§

impl PartialEq for DurableGraphDriverOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DurableGraphDriverOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsOut<T> for T
where T: Copy,

Source§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more