Struct inotify::wrapper::INotify [] [src]

pub struct INotify {
    pub fd: c_int,
    // some fields omitted
}

Fields

fd: c_int

Methods

impl INotify
[src]

fn init() -> Result<INotify>

fn init_with_flags(flags: isize) -> Result<INotify>

fn add_watch(&self, path: &Path, mask: u32) -> Result<Watch>

fn rm_watch(&self, watch: Watch) -> Result<()>

fn wait_for_events(&mut self) -> Result<&[Event]>

Wait until events are available, then return them. This function will block until events are available. If you want it to return immediately, use available_events.

fn available_events(&mut self) -> Result<&[Event]>

Returns available inotify events. If no events are available, this method will simply return a slice with zero events. If you want to wait for events to become available, call wait_for_events.

fn close(&self) -> Result<()>

Trait Implementations

impl Clone for INotify
[src]

fn clone(&self) -> INotify

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more