Struct quadoculars::Watch [−][src]
Implementations
impl Watch
[src]
pub fn new() -> Watch
[src]
pub fn set_timeout(self, duration: f32) -> Watch
[src]
Set timeout. so if the file renamed/removed permanently, the watcher will be able to terminate itself.
default value is 0.63 seconds, set large than that if intended for watching huge file.
pub fn single_file<'a>(
&self,
file: &'a PathBuf,
tx: Sender<Fstate<PathBuf>>
) -> Result<bool>
[src]
&self,
file: &'a PathBuf,
tx: Sender<Fstate<PathBuf>>
) -> Result<bool>
Single file watcher
pub fn multiple_files(
&self,
vec_files: &mut Vec<PathBuf>,
tx: Sender<Fstate<PathBuf>>
) -> Result<bool>
[src]
&self,
vec_files: &mut Vec<PathBuf>,
tx: Sender<Fstate<PathBuf>>
) -> Result<bool>
Technically the same as single_file watcher, but for multilple files.
pub fn is_continue<'a>(vec_files: &mut Vec<PathBuf>, file: &'a PathBuf) -> bool
[src]
Additional for multiple_files to check if there’s watcher(s) still continue watching the file(s).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Watch
impl Send for Watch
impl Sync for Watch
impl Unpin for Watch
impl UnwindSafe for Watch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,