pub struct CortexAdapterConfig {
pub start: StartPosition,
pub on_fold_error: FoldErrorPolicy,
pub ryw_inflight_cap: usize,
}Expand description
One-shot configuration for a super::CortexAdapter instance.
Fields§
§start: StartPositionWhere the fold task starts.
on_fold_error: FoldErrorPolicyWhat to do on fold error.
ryw_inflight_cap: usizePer-channel cap on concurrent wait_for_token permits.
Defaults to RYW_INFLIGHT_CAP_DEFAULT. Past this many
in-flight waits, new callers get
WaitForTokenError::QueueFull. See the type-level docs
for the naming note: this is a permit count, not a FIFO.
Implementations§
Source§impl CortexAdapterConfig
impl CortexAdapterConfig
Sourcepub fn with_start(self, start: StartPosition) -> Self
pub fn with_start(self, start: StartPosition) -> Self
Set the start position.
Sourcepub fn with_fold_error_policy(self, policy: FoldErrorPolicy) -> Self
pub fn with_fold_error_policy(self, policy: FoldErrorPolicy) -> Self
Set the fold error policy.
Sourcepub fn with_ryw_inflight_cap(self, cap: usize) -> Self
pub fn with_ryw_inflight_cap(self, cap: usize) -> Self
Set the per-channel cap on concurrent wait_for_token
permits. Zero disables the cap (unbounded — use only when
the caller already bounds in-flight RYW waits elsewhere).
Trait Implementations§
Source§impl Clone for CortexAdapterConfig
impl Clone for CortexAdapterConfig
Source§fn clone(&self) -> CortexAdapterConfig
fn clone(&self) -> CortexAdapterConfig
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 moreimpl Copy for CortexAdapterConfig
Source§impl Debug for CortexAdapterConfig
impl Debug for CortexAdapterConfig
Auto Trait Implementations§
impl Freeze for CortexAdapterConfig
impl RefUnwindSafe for CortexAdapterConfig
impl Send for CortexAdapterConfig
impl Sync for CortexAdapterConfig
impl Unpin for CortexAdapterConfig
impl UnsafeUnpin for CortexAdapterConfig
impl UnwindSafe for CortexAdapterConfig
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