pub struct RememberEntitiesConfig {
pub queue_capacity: usize,
pub failure_policy: RememberEntitiesFailurePolicy,
pub event_buffer: usize,
/* private fields */
}Expand description
Remember-entities configuration for a sharding region.
Fields§
§queue_capacity: usizeBounded write-behind queue capacity.
failure_policy: RememberEntitiesFailurePolicyStore failure behavior.
event_buffer: usizeBounded event-feed capacity for remember-entities errors.
Implementations§
Source§impl RememberEntitiesConfig
impl RememberEntitiesConfig
Sourcepub fn with_store(store: Arc<dyn RememberEntitiesStore>) -> Self
pub fn with_store(store: Arc<dyn RememberEntitiesStore>) -> Self
Enable remember-entities with store.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Return whether a store is configured.
Sourcepub const fn with_queue_capacity(self, capacity: usize) -> Self
pub const fn with_queue_capacity(self, capacity: usize) -> Self
Set the write-behind queue capacity.
Sourcepub const fn with_failure_policy(
self,
policy: RememberEntitiesFailurePolicy,
) -> Self
pub const fn with_failure_policy( self, policy: RememberEntitiesFailurePolicy, ) -> Self
Set the store failure policy.
Sourcepub const fn with_event_buffer(self, capacity: usize) -> Self
pub const fn with_event_buffer(self, capacity: usize) -> Self
Set the remember error event buffer.
Trait Implementations§
Source§impl Clone for RememberEntitiesConfig
impl Clone for RememberEntitiesConfig
Source§fn clone(&self) -> RememberEntitiesConfig
fn clone(&self) -> RememberEntitiesConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RememberEntitiesConfig
impl Debug for RememberEntitiesConfig
Auto Trait Implementations§
impl !RefUnwindSafe for RememberEntitiesConfig
impl !UnwindSafe for RememberEntitiesConfig
impl Freeze for RememberEntitiesConfig
impl Send for RememberEntitiesConfig
impl Sync for RememberEntitiesConfig
impl Unpin for RememberEntitiesConfig
impl UnsafeUnpin for RememberEntitiesConfig
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<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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage