Struct fswatch_sys::FswSessionBuilder [] [src]

pub struct FswSessionBuilder<F> { /* fields omitted */ }

A builder for FswSession.

This builder requires that paths and callback be supplied in its constructor, as the program may crash if a session is started without those fields.

Methods

impl<F> FswSessionBuilder<F> where F: Fn(Vec<FswCEvent>) + 'static
[src]

Make a new builder with the required variables.

Build the FswSession, applying all specified options before passing ownership to the caller.

If any errors occur while applying options, they are propagted up.

Set the type of monitor for this session.

Add a custom property to this session. Properties with the same name will keep the last value specified.

Set the overflow property for this session.

Set the latency for this session, for monitors using this property.

Set whether this session should be recursive.

Set whether this session is directory only.

Set whether this session should follow symlinks.

Add an event flag filter for this session.

Add a filter for this session.