Struct uu_tail::args::Settings

source ·
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

source

pub fn from_obsolete_args(args: &ObsoleteArgs, name: Option<&OsString>) -> Self

source

pub fn from(matches: &ArgMatches) -> UResult<Self>

source

pub fn has_only_stdin(&self) -> bool

source

pub fn has_stdin(&self) -> bool

source

pub fn num_inputs(&self) -> usize

source

pub fn check_warnings(&self)

Check Settings for problematic configurations of tail originating from user provided command line arguments and print appropriate warnings.

source

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§

source§

impl Debug for Settings

source§

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

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

impl Default for Settings

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.