pub struct DaemonArgs {
pub foreground: bool,
pub socket: Option<PathBuf>,
pub root: Vec<PathBuf>,
pub no_watch: bool,
pub no_schedule: bool,
pub no_resource_guard: bool,
pub full_cron: Option<String>,
pub incremental_interval: Option<u64>,
pub debounce_ms: Option<u64>,
pub battery_threshold: Option<u8>,
pub cpu_threshold: Option<u8>,
}Expand description
Arguments for the daemon subcommand.
Fields§
§foreground: boolRun in foreground (don’t daemonize)
socket: Option<PathBuf>Socket path for IPC (default: ~/.cache/paper/daemon.sock)
root: Vec<PathBuf>Roots to index (default: auto-discover Documents, Downloads, Desktop)
no_watch: boolDisable file system watcher
no_schedule: boolDisable scheduler
no_resource_guard: boolDisable resource guard (battery/CPU monitoring)
full_cron: Option<String>Full reindex cron expression (default: “0 0 3 * * *” = daily 3 AM)
incremental_interval: Option<u64>Incremental index interval in seconds (default: 300 = 5 min)
debounce_ms: Option<u64>Debounce time for file watcher in milliseconds (default: 250)
battery_threshold: Option<u8>Battery threshold percentage (default: 20)
cpu_threshold: Option<u8>CPU threshold percentage (default: 80)
Trait Implementations§
Source§impl Args for DaemonArgs
impl Args for DaemonArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for DaemonArgs
impl Clone for DaemonArgs
Source§impl Debug for DaemonArgs
impl Debug for DaemonArgs
Source§impl FromArgMatches for DaemonArgs
impl FromArgMatches for DaemonArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Forget for DaemonArgs
impl Freeze for DaemonArgs
impl Move for DaemonArgs
impl RefUnwindSafe for DaemonArgs
impl Send for DaemonArgs
impl Sync for DaemonArgs
impl Unpin for DaemonArgs
impl UnsafeUnpin for DaemonArgs
impl UnwindSafe for DaemonArgs
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
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> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
Converts
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> ⓘ
Converts
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