pub struct Standalone {Show 32 fields
pub secret_storage: SecretPlan,
pub data_dir: PathBuf,
pub log_mode: u32,
pub database_url: String,
pub grpc: SocketAddr,
pub http: SocketAddr,
pub logs: SocketAddr,
pub ops: SocketAddr,
pub auth_timings: AuthTimings,
pub node_heartbeat: Duration,
pub node_row_kept: Duration,
pub schema_retry: Duration,
pub dag_versions_cached: usize,
pub worker_stop_after_failure: Duration,
pub loop_stall_timeout: Duration,
pub query_timeout: Duration,
pub notifications: bool,
pub notifications_url: Option<String>,
pub lease_period: Duration,
pub retention: LogRetention,
pub master: Settings,
pub outbox: MasterOutbox,
pub tick: Duration,
pub agent: AgentSettings,
pub parse: ParseLimits,
pub auth: AuthSection,
pub ui_token_file: Option<PathBuf>,
pub api_timings: ApiTimings,
pub change_notifications: bool,
pub ui: Option<LocalUi>,
pub migrate: bool,
pub config: Value,
}Expand description
Everything schedr standalone runs, read from the configuration.
Fields§
§secret_storage: SecretPlanThe secret storages, made once the database is connected (db among them).
data_dir: PathBufWhere logs, the worker’s journal and the SQLite database go.
log_mode: u32The mode of its worker’s logs ([worker] log_mode, B182).
database_url: StringThe database ([database] url, else SQLite in the data directory).
grpc: SocketAddrThe master’s gRPC address.
http: SocketAddrThe REST API’s address.
logs: SocketAddrThe worker’s log endpoint’s address.
ops: SocketAddrThe ops port’s address.
auth_timings: AuthTimingsHow the users and the UI’s token are followed.
node_heartbeat: DurationHow often its row of the deployment’s nodes is written.
node_row_kept: DurationHow long a gone master’s row stays (SCHEDR_HIDDEN__MASTER__NODE_ROW_KEPT).
schema_retry: DurationHow often it tries again to reach a database it can’t reach at its start
(SCHEDR_HIDDEN__WEBSERVER__SCHEMA_RETRY).
dag_versions_cached: usizeThe DAG versions kept parsed (SCHEDR_HIDDEN__DATABASE__DAG_VERSIONS_CACHED).
worker_stop_after_failure: DurationHow long the worker gets to stop once the master failed: its tasks are interrupted at once (nothing could record them), so this is only for a worker stuck on its way out (B151).
loop_stall_timeout: DurationHow long a loop may go without turning before liveness fails.
query_timeout: DurationThe longest a database query may take.
notifications: bool[database] notifications: whether new commands are announced and listened for.
notifications_url: Option<String>[database] notifications_url: what the master listens through, if not the database’s
own connection.
lease_period: DurationThe master’s lease (one master per database).
retention: LogRetentionWhat logs the worker keeps.
master: SettingsThe master’s timing.
outbox: MasterOutbox[notifications], checked, and its sender’s timings.
tick: DurationHow often the master’s loop runs.
agent: AgentSettingsThe worker agent.
parse: ParseLimitsHow long one DAG file may take to import, and how many are parsed at once.
auth: AuthSectionWho the user is ([webserver.auth]).
ui_token_file: Option<PathBuf>The token a UI elsewhere presents to pass users’ names on ([webserver] ui_token_file:
a federation of standalones, decision 36).
api_timings: ApiTimingsHow long the webserver waits, and how often live pages refresh when the database’s changes can’t be followed.
change_notifications: boolWhether the writes announce their changes (applied with --migrate).
ui: Option<LocalUi>The web UI it serves next to its API; none with --no-ui.
migrate: boolWhether to migrate the database at start (--migrate).
config: ValueIts configuration, masked: shown on the Deployments page for its master and worker.
Trait Implementations§
Source§impl Clone for Standalone
impl Clone for Standalone
Source§fn clone(&self) -> Standalone
fn clone(&self) -> Standalone
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Standalone
impl !UnwindSafe for Standalone
impl Freeze for Standalone
impl Send for Standalone
impl Sync for Standalone
impl Unpin for Standalone
impl UnsafeUnpin for Standalone
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
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].§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);