pub struct PipeConfig {
pub stderr: StderrMode,
pub read_chunk_bytes: u64,
pub drain_quiet_ms: u64,
pub kill_wait_ms: u64,
pub stderr_tail_bytes: u64,
pub swept_fds: u64,
pub tree_scans: u64,
pub run_as: Option<String>,
pub allow_root: bool,
}Expand description
pipe provider configuration; every field has a default.
Fields§
§stderr: StderrModeWhat becomes of standard error: tail (the default), merge or drop.
read_chunk_bytes: u64Bytes of one read of the program’s output. At least 1. Default 65536.
drain_quiet_ms: u64Milliseconds the output must stay quiet after the program has exited before read
reports its end, while a process the program left behind holds the output pipe. Default
200.
kill_wait_ms: u64Milliseconds kill waits for the program and its process tree to have exited. Default
2000.
stderr_tail_bytes: u64Bytes of the end of standard error StderrMode::Tail keeps. Default 8192.
swept_fds: u64On Unix, the highest descriptor the child marks close-on-exec where close_range is
not there to do it at once (before Linux 5.11, and on other systems): a soft
RLIMIT_NOFILE of a million would take as many calls. Default 65536. Windows ignores it.
tree_scans: u64On Unix, how many times the process table is read again for processes started meanwhile when a tree is killed. Default 32. Windows ignores it.
run_as: Option<String>On Unix, the user the program runs as, which must not be uid 0; resolved when the provider
is built, and an unknown name refuses it. Unset runs it as the Station’s own user, which a
Station running as root refuses unless allow_root is set. Windows has no uid and refuses it.
allow_root: boolLets a Station that runs as root start programs as root, with no run_as: the operator’s
weakening, which the startup log names. Default false.
Trait Implementations§
Source§impl Clone for PipeConfig
impl Clone for PipeConfig
Source§impl Debug for PipeConfig
impl Debug for PipeConfig
Source§impl Default for PipeConfig
impl Default for PipeConfig
impl Eq for PipeConfig
Source§impl FromValue for PipeConfig
impl FromValue for PipeConfig
Source§const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Source§impl FromWalk for PipeConfig
impl FromWalk for PipeConfig
Source§impl MapRead for PipeConfig
impl MapRead for PipeConfig
Source§impl PartialEq for PipeConfig
impl PartialEq for PipeConfig
Source§impl Schema for PipeConfig
impl Schema for PipeConfig
impl StructuralPartialEq for PipeConfig
Source§impl ToValue for PipeConfig
impl ToValue for PipeConfig
Source§impl TryFrom<PipeConfig> for Pipe
impl TryFrom<PipeConfig> for Pipe
Auto Trait Implementations§
impl Freeze for PipeConfig
impl RefUnwindSafe for PipeConfig
impl Send for PipeConfig
impl Sync for PipeConfig
impl Unpin for PipeConfig
impl UnsafeUnpin for PipeConfig
impl UnwindSafe for PipeConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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.