pub enum WatchInput {
Path {
kind: WatchInputKind,
path: PathBuf,
watch_anchor: PathBuf,
snapshot_mode: PathSnapshotMode,
},
Glob {
kind: WatchInputKind,
raw: String,
absolute_pattern: String,
watch_anchor: PathBuf,
},
}Variants§
Implementations§
Source§impl WatchInput
impl WatchInput
pub fn path(raw: &str, cwd: &Path, kind: WatchInputKind) -> Result<Self>
pub fn path_with_snapshot_mode( raw: &str, cwd: &Path, kind: WatchInputKind, snapshot_mode: PathSnapshotMode, ) -> Result<Self>
pub fn glob(raw: &str, cwd: &Path) -> Result<Self>
pub fn kind(&self) -> WatchInputKind
pub fn watch_anchor(&self) -> &Path
pub fn snapshot_mode_label(&self) -> &'static str
Trait Implementations§
Source§impl Clone for WatchInput
impl Clone for WatchInput
Source§fn clone(&self) -> WatchInput
fn clone(&self) -> WatchInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatchInput
impl Debug for WatchInput
Source§impl PartialEq for WatchInput
impl PartialEq for WatchInput
impl Eq for WatchInput
impl StructuralPartialEq for WatchInput
Auto Trait Implementations§
impl Freeze for WatchInput
impl RefUnwindSafe for WatchInput
impl Send for WatchInput
impl Sync for WatchInput
impl Unpin for WatchInput
impl UnsafeUnpin for WatchInput
impl UnwindSafe for WatchInput
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