pub struct NodeConfig {
pub idle_timeout_ms: i64,
pub snapshot_interval: u64,
pub fencing: Option<FencingToken>,
pub failure_backoff_ms: i64,
pub crash_at: Option<CrashPoint>,
}Expand description
Node settings.
Fields§
§idle_timeout_ms: i64A virtual actor idle this long, with nothing deliverable, is deactivated.
snapshot_interval: u64A snapshot is written whenever the journal position is a multiple of this; 0 disables snapshots.
fencing: Option<FencingToken>The fencing token every append carries.
failure_backoff_ms: i64How long an actor whose turn failed waits before it is activated again.
crash_at: Option<CrashPoint>Simulated crash point (tests).
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§impl Debug for NodeConfig
impl Debug for NodeConfig
Auto Trait Implementations§
impl Forget for NodeConfig
impl Freeze for NodeConfig
impl Move for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnsafeUnpin for NodeConfig
impl UnwindSafe for NodeConfig
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