Struct fswatch_sys::FswSessionBuilder [] [src]

pub struct FswSessionBuilder { /* fields omitted */ }

A builder for FswSession.

This struct saves all the options passed to it by the builder methods, which means it is safe to call the builder methods multiple times, as nothing will be passed to the C API until build is called.

Methods

impl FswSessionBuilder
[src]

Creates an empty builder, not requiring paths to be 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 propagated 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 propagated 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.