[−][src]Struct libuv::handles::fs_poll::FsPollHandle
FS Poll handles allow the user to monitor a given path for changes. Unlike FsEventHandle, fs poll handles use stat to detect when a file has changed so they can work on file systems where fs event handles can’t.
Implementations
impl FsPollHandle
[src]
pub fn new(r#loop: &Loop) -> Result<FsPollHandle>
[src]
Create and initialize a new fs poll handle
pub fn start<CB: Into<FsPollCB<'static>>>(
&mut self,
path: &str,
interval: u32,
cb: CB
) -> Result<(), Box<dyn Error>>
[src]
&mut self,
path: &str,
interval: u32,
cb: CB
) -> Result<(), Box<dyn Error>>
Check the file at path for changes every interval milliseconds.
Note: For maximum portability, use multi-second intervals. Sub-second intervals will not detect all changes on many file systems.
pub fn stop(&mut self) -> Result<()>
[src]
Stop the handle, the callback will no longer be called.
pub fn getpath(&self) -> Result<String>
[src]
Get the path being monitored by the handle.
Trait Implementations
impl Clone for FsPollHandle
[src]
fn clone(&self) -> FsPollHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FsPollHandle
[src]
impl From<FsPollHandle> for Handle
[src]
fn from(fs_poll: FsPollHandle) -> Handle
[src]
impl HandleTrait for FsPollHandle
[src]
fn is_active(&self) -> bool
[src]
fn is_closing(&self) -> bool
[src]
fn close<CB: Into<CloseCB<'static>>>(&mut self, cb: CB)
[src]
fn ref(&mut self)
[src]
fn unref(&mut self)
[src]
fn has_ref(&self) -> bool
[src]
fn send_buffer_size(&mut self, value: i32) -> Result<i32>
[src]
fn recv_buffer_size(&mut self, value: i32) -> Result<i32>
[src]
fn get_fileno(&self) -> Result<OsFile>
[src]
fn get_loop(&self) -> Loop
[src]
fn get_type(&self) -> HandleType
[src]
impl ToHandle for FsPollHandle
[src]
impl TryFrom<Handle> for FsPollHandle
[src]
Auto Trait Implementations
impl RefUnwindSafe for FsPollHandle
impl !Send for FsPollHandle
impl !Sync for FsPollHandle
impl Unpin for FsPollHandle
impl UnwindSafe for FsPollHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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.
fn to_owned(&self) -> T
[src]
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.
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>,