Struct fswatch_sys::FswSessionBuilder [] [src]

pub struct FswSessionBuilder { /* 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 FswSessionBuilder
[src]

Creates an empty builder, not requiring paths and callback being set.

This is mainly useful when constructing an FswSession for use as an iterator.

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.

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

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

Add a path to monitor for this session.

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.

Trait Implementations

impl Debug for FswSessionBuilder
[src]

Formats the value using the given formatter.