Skip to main content

HiddenLimits

Struct HiddenLimits 

Source
pub struct HiddenLimits {
Show 36 fields pub worker_report_records: usize, pub worker_report_text: usize, pub notification_body: usize, pub retention_batch: usize, pub messages_per_turn: usize, pub metrics_cache_keys: usize, pub metrics_cache_buckets: usize, pub memory_peaks_runs: usize, pub assignments_per_round: usize, pub expiries_per_round: usize, pub waiting_reasons_per_round: usize, pub pending_reasons_per_round: usize, pub commands_per_round: usize, pub scheduled_runs_per_round: usize, pub started_instances_per_round: usize, pub retries_per_round: usize, pub runs_per_planning_pass: usize, pub run_of_runs_per_pass: usize, pub failed_group_messages_per_turn: usize, pub worker_stream_buffer: usize, pub notifications_per_pass: usize, pub results_per_journal_group: usize, pub starts_per_journal_group: usize, pub result_resends: usize, pub result_resend_gap_max: usize, pub unacked_messages_kept: usize, pub unsent_connection_answers: usize, pub task_connections_open: usize, pub watcher_log_backlog: usize, pub webserver_events_backlog: usize, pub ui_events_backlog: usize, pub auth_remembered_max: usize, pub changes_poll_rows: usize, pub dag_versions_cached: usize, pub tls_handshakes_at_once: usize, pub overridden: Vec<String>,
}
Expand description

Fixed limits, like Timings not configuration: only SCHEDR_HIDDEN__* changes them.

Fields§

§worker_report_records: usize

The most records of one kind (wait step hosts, warnings) the master keeps of what a worker reports (MASTER__WORKER_REPORT_RECORDS, B183): an honest agent sends a few.

§worker_report_text: usize

The most characters of each text in them the master keeps (MASTER__WORKER_REPORT_TEXT).

§notification_body: usize

The most bytes a notification’s body may take once filled (MASTER__NOTIFICATION_BODY): a template using big values many times is refused.

§retention_batch: usize

The most runs the retention job deletes in one transaction (MASTER__RETENTION_BATCH, decision 432): one run can hold thousands of rows, and a transaction holds its locks.

§messages_per_turn: usize

The most messages of one worker the master handles in one turn of its lock (MASTER__MESSAGES_PER_TURN, M4B.3): its Starteds and Finisheds stored together.

§metrics_cache_keys: usize

The Metrics cache’s keys at most (each range, all processes or one; decision 492). (WEBSERVER__METRICS_CACHE_KEYS)

§metrics_cache_buckets: usize

The buckets the Metrics cache keeps for one key at most; past them it reads each time. (WEBSERVER__METRICS_CACHE_BUCKETS)

§memory_peaks_runs: usize

The runs, and one task’s attempts, a memory p95 is taken from at most (decision 467). (WEBSERVER__MEMORY_PEAKS_RUNS)

§assignments_per_round: usize

The most assignments a round makes. (MASTER__ASSIGNMENTS_PER_ROUND)

§expiries_per_round: usize

The most assignments a round takes back as never started. (MASTER__EXPIRIES_PER_ROUND)

§waiting_reasons_per_round: usize

The most waiting reasons a round writes (a statement each). (MASTER__WAITING_REASONS_PER_ROUND)

§pending_reasons_per_round: usize

The most pending reasons a round writes for the tasks past its cap (decision 481). (MASTER__PENDING_REASONS_PER_ROUND)

§commands_per_round: usize

The most commands a round applies. (MASTER__COMMANDS_PER_ROUND)

§scheduled_runs_per_round: usize

The most scheduled runs a round creates for one DAG. (MASTER__SCHEDULED_RUNS_PER_ROUND)

§started_instances_per_round: usize

The most task instances a round creates for runs that just started. (MASTER__STARTED_INSTANCES_PER_ROUND)

§retries_per_round: usize

The most failed tasks a round queues again. (MASTER__RETRIES_PER_ROUND)

§runs_per_planning_pass: usize

The most runs the scheduler creates for one DAG in one pass. (MASTER__RUNS_PER_PLANNING_PASS)

§run_of_runs_per_pass: usize

The most runs one pass starts for a DAG started by RunOf. (MASTER__RUN_OF_RUNS_PER_PASS)

§failed_group_messages_per_turn: usize

The most messages of a failed group handled one by one in a turn (M4B.3). (MASTER__FAILED_GROUP_MESSAGES_PER_TURN)

§worker_stream_buffer: usize

The messages that wait for a worker before it is taken for one that stopped reading. (MASTER__WORKER_STREAM_BUFFER)

§notifications_per_pass: usize

The most notifications one pass of the sender delivers. (MASTER__NOTIFICATIONS_PER_PASS)

§results_per_journal_group: usize

The most results a worker keeps in its journal as one group (M4B.5). (WORKER__RESULTS_PER_JOURNAL_GROUP)

§starts_per_journal_group: usize

The most assignments whose journal records a worker writes as one group (M5.1b). (WORKER__STARTS_PER_JOURNAL_GROUP)

§result_resends: usize

How many times a worker sends a result again over one session before it reconnects. (WORKER__RESULT_RESENDS)

§result_resend_gap_max: usize

The most heartbeats between two sends of an unacknowledged result (B41). (WORKER__RESULT_RESEND_GAP_MAX)

§unacked_messages_kept: usize

The messages a worker keeps waiting to be heard of (B240), the oldest dropped first. (WORKER__UNACKED_MESSAGES_KEPT)

§unsent_connection_answers: usize

The connections jobs’ answers a worker keeps while no master listens. (WORKER__UNSENT_CONNECTION_ANSWERS)

§task_connections_open: usize

The most connections a task may have open to its agent at once. (WORKER__TASK_CONNECTIONS_OPEN)

§watcher_log_backlog: usize

The messages of a wait step waiting for its attempt before its host waits too. (WORKER__WATCHER_LOG_BACKLOG)

§webserver_events_backlog: usize

The changes a slow event stream may fall behind by before it gets refresh. (WEBSERVER__EVENTS_BACKLOG)

§ui_events_backlog: usize

The changes a slow browser may fall behind by before it gets refresh. (UI__EVENTS_BACKLOG)

§auth_remembered_max: usize

The password checks remembered at once, the oldest dropped first. (WEBSERVER__AUTH_REMEMBERED_MAX)

§changes_poll_rows: usize

The most rows of SQLite’s changes one read takes. (DATABASE__CHANGES_POLL_ROWS)

§dag_versions_cached: usize

The DAG versions a process keeps parsed before clearing them. (DATABASE__DAG_VERSIONS_CACHED)

§tls_handshakes_at_once: usize

How many TLS handshakes may run at once; beyond them accepting waits. (TLS__HANDSHAKES_AT_ONCE)

§overridden: Vec<String>

The SCHEDR_HIDDEN__* variables that changed one.

Trait Implementations§

Source§

impl Clone for HiddenLimits

Source§

fn clone(&self) -> HiddenLimits

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HiddenLimits

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for HiddenLimits

Source§

fn default() -> Self

256 records of each kind, 4096 characters of each text, 1 MiB a notification, 100 runs a retention transaction, 80 messages a turn (decision 484); the rest as each says.

Source§

impl Eq for HiddenLimits

Source§

impl PartialEq for HiddenLimits

Source§

fn eq(&self, other: &HiddenLimits) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for HiddenLimits

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Paint for T
where T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1:

renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.