pub struct WatchOptions {
pub watch_file: Option<WatchFile>,
pub watch_directory: Option<WatchDirectory>,
pub exclude_files: BTreeSet<String>,
pub exclude_directories: BTreeSet<String>,
pub fallback_polling: Option<FallbackPolling>,
pub synchronous_watch_directory: Option<bool>,
}Expand description
Settings for the watch mode in TypeScript.
Fields§
§watch_file: Option<WatchFile>Specify how the TypeScript watch mode works.
See more: https://www.typescriptlang.org/tsconfig#watchFile
watch_directory: Option<WatchDirectory>Specify how directories are watched on systems that lack recursive file-watching functionality.
See more: https://www.typescriptlang.org/tsconfig#watchDirectory
exclude_files: BTreeSet<String>Remove a list of files from the watch mode’s processing.
See more: https://www.typescriptlang.org/tsconfig#excludeFiles
exclude_directories: BTreeSet<String>Remove a list of directories from the watch process.
See more: https://www.typescriptlang.org/tsconfig#excludeDirectories
fallback_polling: Option<FallbackPolling>Specify what approach the watcher should use if the system runs out of native file watchers.
See more: https://www.typescriptlang.org/tsconfig#fallbackPolling
synchronous_watch_directory: Option<bool>Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively.
See more: https://www.typescriptlang.org/tsconfig#synchronousWatchDirectory
Trait Implementations§
Source§impl Clone for WatchOptions
impl Clone for WatchOptions
Source§fn clone(&self) -> WatchOptions
fn clone(&self) -> WatchOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WatchOptions
impl Debug for WatchOptions
Source§impl<'de> Deserialize<'de> for WatchOptions
impl<'de> Deserialize<'de> for WatchOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WatchOptions
impl PartialEq for WatchOptions
Source§impl Serialize for WatchOptions
impl Serialize for WatchOptions
impl Eq for WatchOptions
impl StructuralPartialEq for WatchOptions
Auto Trait Implementations§
impl Freeze for WatchOptions
impl RefUnwindSafe for WatchOptions
impl Send for WatchOptions
impl Sync for WatchOptions
impl Unpin for WatchOptions
impl UnsafeUnpin for WatchOptions
impl UnwindSafe for WatchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.