Expand description
Modules§
- event
- listener
GlocListener— react to state transitions on any reactor.- observer
GlocObserver— global interceptor for all reactor transitions.- provider
GlocProvider— shared ownership and lifecycle management for reactors.- reactor
- state
- stream
GlocStream— the reactive core of GLOC.
Structs§
- Gloc
Provider - Provides shared read/write access to a reactor with explicit lifecycle management.
- Gloc
Stream - A shared, observable stream of state transitions.
- Gloc
Subscription - A read-only handle to a
GlocStream. - Reactor
Base - A ready-to-use, heap-allocated
Reactorimplementation.
Traits§
- Gloc
Listener - A trait for types that react to state transitions on a reactor.
- Gloc
Observer - A global observer that receives lifecycle and transition events from every managed reactor in the application.
- Neutron
- A neutron fired into a reactor to trigger a state transition.
- Reactor
- The core abstraction for state management in GLoC.
- State
- A marker trait for any type that can serve as state within a
Cubit.
Functions§
- clear_
observer - Removes the currently registered observer.
- observer
- Returns the current global observer, if one has been registered.
- set_
observer - Registers
observeras the global transition interceptor.
Type Aliases§
Attribute Macros§
- reactor
- Zero-boilerplate Reactor implementation generator.
- reactor_
state - Automatically injects
Clone,PartialEq, andDebugderives onto a state struct or enum. Extra derives can be added viaderive(...).