Crate tokens

Source
Expand description

§More Change Tokens   CI Crates.io MIT licensed

More Change Tokens is a library for defining change tokens in Rust. Change tokens are used to signal changes to consumers via a registered callback or polling.

You may be looking for:

§Crate Features

This crate provides the following features:

  • default - Abstractions and default implementations for change tokens
  • fs - File system change tokens

§License

This project is licensed under the MIT license.

Structs§

CompositeChangeToken
Represents a composition of one or more ChangeToken instances.
DefaultChangeToken
Represents a default ChangeToken that may change zero or more times.
FileChangeTokenfs
Represents a ChangeToken for a file.
NeverChangeToken
Represents a ChangeToken that never changes.
Registration
Represents a ChangeToken registration.
SharedChangeToken
Represents a shared ChangeToken.
SingleChangeToken
Represents a ChangeToken that changes at most once.

Traits§

ChangeToken
Propagates notifications that a change has occurred.
Subscription
Defines the behavior of an opaque subscription.

Functions§

on_change
Registers a consumer action to be invoked whenever the token produced changes.

Type Aliases§

Callback