//! The `observer` module defines the `Observer` trait, which is implemented by
//! types responsible for observing and handling events emitted by observables.
//! While optional for users to implement, this trait is mainly utilized by the `rxr`
//! library internally.
use ;
/// The `Observer` trait defines the methods that observers must implement to handle
/// events emitted by an observable stream.
///
/// Observers are responsible for reacting to emitted values, signals of successful
/// completion, and signals of error occurrences.
/// Although users have the flexibility to implement this trait, it's worth noting
/// that the `rxr` library predominantly employs it for internal functionality.