Struct fsevent_stream::stream::EventStreamHandler [−][src]
pub struct EventStreamHandler { /* fields omitted */ }Expand description
An owned permission to stop an EventStream and terminate its backing RunLoop.
A EventStreamHandler detaches the associated Stream and RunLoop when it is dropped, which
means that there is no longer any handle to them and no way to abort them.
Dropping the handler without first calling abort is not
recommended because this leaves a spawned thread behind and causes memory leaks.
Implementations
Stop an EventStream and terminate its backing RunLoop.
Calling this method multiple times has no extra effect and won’t cause any panic, error, or undefined behavior.