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: usizeThe 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: usizeThe most characters of each text in them the master keeps
(MASTER__WORKER_REPORT_TEXT).
notification_body: usizeThe most bytes a notification’s body may take once filled
(MASTER__NOTIFICATION_BODY): a template using big values many times is refused.
retention_batch: usizeThe 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: usizeThe 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: usizeThe Metrics cache’s keys at most (each range, all processes or one; decision 492). (WEBSERVER__METRICS_CACHE_KEYS)
metrics_cache_buckets: usizeThe buckets the Metrics cache keeps for one key at most; past them it reads each time. (WEBSERVER__METRICS_CACHE_BUCKETS)
memory_peaks_runs: usizeThe runs, and one task’s attempts, a memory p95 is taken from at most (decision 467). (WEBSERVER__MEMORY_PEAKS_RUNS)
assignments_per_round: usizeThe most assignments a round makes. (MASTER__ASSIGNMENTS_PER_ROUND)
expiries_per_round: usizeThe most assignments a round takes back as never started. (MASTER__EXPIRIES_PER_ROUND)
waiting_reasons_per_round: usizeThe most waiting reasons a round writes (a statement each). (MASTER__WAITING_REASONS_PER_ROUND)
pending_reasons_per_round: usizeThe most pending reasons a round writes for the tasks past its cap (decision 481). (MASTER__PENDING_REASONS_PER_ROUND)
commands_per_round: usizeThe most commands a round applies. (MASTER__COMMANDS_PER_ROUND)
scheduled_runs_per_round: usizeThe most scheduled runs a round creates for one DAG. (MASTER__SCHEDULED_RUNS_PER_ROUND)
started_instances_per_round: usizeThe most task instances a round creates for runs that just started. (MASTER__STARTED_INSTANCES_PER_ROUND)
retries_per_round: usizeThe most failed tasks a round queues again. (MASTER__RETRIES_PER_ROUND)
runs_per_planning_pass: usizeThe most runs the scheduler creates for one DAG in one pass. (MASTER__RUNS_PER_PLANNING_PASS)
run_of_runs_per_pass: usizeThe most runs one pass starts for a DAG started by RunOf. (MASTER__RUN_OF_RUNS_PER_PASS)
failed_group_messages_per_turn: usizeThe most messages of a failed group handled one by one in a turn (M4B.3). (MASTER__FAILED_GROUP_MESSAGES_PER_TURN)
worker_stream_buffer: usizeThe messages that wait for a worker before it is taken for one that stopped reading. (MASTER__WORKER_STREAM_BUFFER)
notifications_per_pass: usizeThe most notifications one pass of the sender delivers. (MASTER__NOTIFICATIONS_PER_PASS)
results_per_journal_group: usizeThe most results a worker keeps in its journal as one group (M4B.5). (WORKER__RESULTS_PER_JOURNAL_GROUP)
starts_per_journal_group: usizeThe most assignments whose journal records a worker writes as one group (M5.1b). (WORKER__STARTS_PER_JOURNAL_GROUP)
result_resends: usizeHow many times a worker sends a result again over one session before it reconnects. (WORKER__RESULT_RESENDS)
result_resend_gap_max: usizeThe most heartbeats between two sends of an unacknowledged result (B41). (WORKER__RESULT_RESEND_GAP_MAX)
unacked_messages_kept: usizeThe messages a worker keeps waiting to be heard of (B240), the oldest dropped first. (WORKER__UNACKED_MESSAGES_KEPT)
unsent_connection_answers: usizeThe connections jobs’ answers a worker keeps while no master listens. (WORKER__UNSENT_CONNECTION_ANSWERS)
task_connections_open: usizeThe most connections a task may have open to its agent at once. (WORKER__TASK_CONNECTIONS_OPEN)
watcher_log_backlog: usizeThe messages of a wait step waiting for its attempt before its host waits too. (WORKER__WATCHER_LOG_BACKLOG)
webserver_events_backlog: usizeThe changes a slow event stream may fall behind by before it gets refresh. (WEBSERVER__EVENTS_BACKLOG)
ui_events_backlog: usizeThe changes a slow browser may fall behind by before it gets refresh. (UI__EVENTS_BACKLOG)
auth_remembered_max: usizeThe password checks remembered at once, the oldest dropped first. (WEBSERVER__AUTH_REMEMBERED_MAX)
changes_poll_rows: usizeThe most rows of SQLite’s changes one read takes. (DATABASE__CHANGES_POLL_ROWS)
dag_versions_cached: usizeThe DAG versions a process keeps parsed before clearing them. (DATABASE__DAG_VERSIONS_CACHED)
tls_handshakes_at_once: usizeHow 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
impl Clone for HiddenLimits
Source§fn clone(&self) -> HiddenLimits
fn clone(&self) -> HiddenLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HiddenLimits
impl Debug for HiddenLimits
Source§impl Default for HiddenLimits
impl Default for HiddenLimits
impl Eq for HiddenLimits
Source§impl PartialEq for HiddenLimits
impl PartialEq for HiddenLimits
impl StructuralPartialEq for HiddenLimits
Auto Trait Implementations§
impl Freeze for HiddenLimits
impl RefUnwindSafe for HiddenLimits
impl Send for HiddenLimits
impl Sync for HiddenLimits
impl Unpin for HiddenLimits
impl UnsafeUnpin for HiddenLimits
impl UnwindSafe for HiddenLimits
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
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 bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
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>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
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 rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
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 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.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
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);