pub trait Config where
    EffectOf<Self::Node>: AsLeaseEffect
{ type Node: Node; type Applicable: ApplicableTo<StateOf<Self::Node>> + 'static; type RetryPolicy: RetryPolicy<Invocation = InvocationOf<Self::Node>, Error = AppendError<InvocationOf<Self::Node>>, StaticError = AppendError<InvocationOf<Self::Node>>>; type Leases<'a>: Iterator<Item = &'a <EffectOf<Self::Node> as AsLeaseEffect>::Lease>
    where
        Self: 'a
; fn active_leases(
        &self,
        state: &FrozenStateOf<Self::Node>
    ) -> Self::Leases<'_>; fn release(
        &self,
        lease_id: <<EffectOf<Self::Node> as AsLeaseEffect>::Lease as Lease>::Id
    ) -> Self::Applicable; fn retry_policy(&self) -> Self::RetryPolicy; fn init(&mut self, node: &Self::Node) { ... } fn update(&mut self, event: &EventFor<Self::Node>) { ... } }
Expand description

Releaser configuration.

Required Associated Types

The node type that is decorated.

The applicable that is used to release leases.

Type of retry policy to be used.

See retry_policy.

Type of currently active leases.

Required Methods

Returns the active leases for state.

Prepares to release the lease with the given id.

Creates a retry policy.

Provided Methods

Initializes this configuration.

Updates the configuration with the given event.

Implementors