pub struct Settings {
pub follow: Option<FollowMode>,
pub max_unchanged_stats: u32,
pub mode: FilterMode,
pub pid: pid_t,
pub retry: bool,
pub sleep_sec: Duration,
pub use_polling: bool,
pub verbose: bool,
pub presume_input_pipe: bool,
pub inputs: Vec<Input>,
}Fields§
§follow: Option<FollowMode>§max_unchanged_stats: u32§mode: FilterMode§pid: pid_t§retry: bool§sleep_sec: Duration§use_polling: bool§verbose: bool§presume_input_pipe: bool§inputs: Vec<Input>FILE(s) positional arguments
Implementations§
source§impl Settings
impl Settings
pub fn from_obsolete_args(args: &ObsoleteArgs, name: Option<&OsString>) -> Self
pub fn from(matches: &ArgMatches) -> UResult<Self>
pub fn has_only_stdin(&self) -> bool
pub fn has_stdin(&self) -> bool
pub fn num_inputs(&self) -> usize
sourcepub fn check_warnings(&self)
pub fn check_warnings(&self)
Check Settings for problematic configurations of tail originating from user provided
command line arguments and print appropriate warnings.
sourcepub fn verify(&self) -> VerificationResult
pub fn verify(&self) -> VerificationResult
Verify Settings and try to find unsolvable misconfigurations of tail originating from
user provided command line arguments. In contrast to Settings::check_warnings these
misconfigurations usually lead to the immediate exit or abortion of the running tail
process.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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