Struct DerivedStateConsumerConfig
pub struct DerivedStateConsumerConfig {
pub transaction_applied: bool,
pub transaction_status_observed: bool,
pub block_meta_observed: bool,
pub rooted_authoritative_observed: bool,
pub account_touch_observed: bool,
pub account_touch_key_partitions: bool,
pub control_plane_observed: bool,
}Expand description
Static feed subscriptions requested by one derived-state consumer during host construction.
Fields§
§transaction_applied: boolEnables TransactionApplied feed delivery.
transaction_status_observed: boolEnables TransactionStatusObserved feed delivery.
block_meta_observed: boolEnables BlockMetaObserved feed delivery.
Enables rooted provider-account observations for authoritative state engines.
account_touch_observed: boolEnables AccountTouchObserved feed delivery.
account_touch_key_partitions: boolRequests writable/read-only key partitions on account-touch events.
control_plane_observed: boolEnables control-plane derived-state events beyond slot/reorg/barrier.
Implementations§
§impl DerivedStateConsumerConfig
impl DerivedStateConsumerConfig
pub fn new() -> Self
pub fn new() -> Self
Creates an empty consumer config with all optional feeds disabled.
pub const fn with_transaction_applied(self) -> Self
pub const fn with_transaction_applied(self) -> Self
Enables TransactionApplied.
pub const fn with_transaction_status_observed(self) -> Self
pub const fn with_transaction_status_observed(self) -> Self
Enables TransactionStatusObserved.
pub const fn with_block_meta_observed(self) -> Self
pub const fn with_block_meta_observed(self) -> Self
Enables BlockMetaObserved.
Enables rooted authoritative account observations.
pub const fn with_account_touch_observed(self) -> Self
pub const fn with_account_touch_observed(self) -> Self
Enables AccountTouchObserved.
pub const fn with_account_touch_key_partitions(self) -> Self
pub const fn with_account_touch_key_partitions(self) -> Self
Enables account-touch key partitions.
pub const fn with_control_plane_observed(self) -> Self
pub const fn with_control_plane_observed(self) -> Self
Enables control-plane derived-state events.
Trait Implementations§
§impl Clone for DerivedStateConsumerConfig
impl Clone for DerivedStateConsumerConfig
§fn clone(&self) -> DerivedStateConsumerConfig
fn clone(&self) -> DerivedStateConsumerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for DerivedStateConsumerConfig
impl Debug for DerivedStateConsumerConfig
§impl Default for DerivedStateConsumerConfig
impl Default for DerivedStateConsumerConfig
§fn default() -> DerivedStateConsumerConfig
fn default() -> DerivedStateConsumerConfig
§impl PartialEq for DerivedStateConsumerConfig
impl PartialEq for DerivedStateConsumerConfig
impl Copy for DerivedStateConsumerConfig
impl Eq for DerivedStateConsumerConfig
impl StructuralPartialEq for DerivedStateConsumerConfig
Auto Trait Implementations§
impl Freeze for DerivedStateConsumerConfig
impl RefUnwindSafe for DerivedStateConsumerConfig
impl Send for DerivedStateConsumerConfig
impl Sync for DerivedStateConsumerConfig
impl Unpin for DerivedStateConsumerConfig
impl UnsafeUnpin for DerivedStateConsumerConfig
impl UnwindSafe for DerivedStateConsumerConfig
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
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>
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>
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